DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30508>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30508 zip task can add duplicate files Summary: zip task can add duplicate files Product: Ant Version: 1.6.1 Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have the following zip statement in a build file: <zip destfile="lega.zip"> <fileset dir="lib" includes="*.jar" excludes="connector.jar com.ibm.mq.jar"/> <fileset dir="." includes="lega.jar"/> </zip> If the lib folder contains a file called lega.jar, the one from there as well as the one from the current directory are added to the resulting zip file. Winzip displays both files in its listing of contents, and prompts to overwrite when unzipping, because it has already unzipped the first one. When attempting to add two files with the same name using Winzip it overwrites automatically inside the zip file. My suggestion would be that ant reports an error when adding the second file with the same name. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]