You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/08/06 10:21:34 UTC

DO NOT REPLY [Bug 30508] New: - zip task can add duplicate files

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: dev@ant.apache.org
        ReportedBy: apachebugzilla@rassie.dk


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org