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 2003/01/29 00:38:08 UTC
DO NOT REPLY [Bug 5036] -
Zip and friends task enhancement request
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5036>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5036
Zip and friends task enhancement request
mmchenry@carnegielearning.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From mmchenry@carnegielearning.com 2003-01-28 23:38 -------
I don't think this is working correctly. With ant version 1.5, I tried running
the following build file:
<project name="test" default="test" basedir=".">
<target name="test">
<delete dir="test1"/> <mkdir dir="test1"/> <touch file="test1/foo"/>
<delete dir="test2"/> <mkdir dir="test2"/> <touch file="test2/foo"/>
<delete dir="test3"/> <mkdir dir="test3"/> <touch file="test3/foo"/>
<delete file="test.zip"/>
<!-- create the initial zip file -->
<zip destfile="test.zip" basedir="test1" update="true"/>
<!-- workaround for bug 10755 -->
<touch file="test.zip" datetime="01/01/1980 12:00 am"/>
<!-- try to update it with a file whose name is identical; should
work because duplicate is omitted -->
<zip destfile="test.zip" basedir="test2" update="true"/>
<touch file="test.zip" datetime="01/01/1980 12:00 am"/>
<!-- try to update it with a file whose name is identical; should
fail because duplicate is set to 'fail' -->
<zip destfile="test.zip" basedir="test3" update="true"
duplicate="fail"/>
</target>
</project>
When I run, I get the following:
% ant
Buildfile: build.xml
test:
[delete] Deleting directory /tmp/anttest/test1
[mkdir] Created dir: /tmp/anttest/test1
[touch] Creating /tmp/anttest/test1/foo
[delete] Deleting directory /tmp/anttest/test2
[mkdir] Created dir: /tmp/anttest/test2
[touch] Creating /tmp/anttest/test2/foo
[delete] Deleting directory /tmp/anttest/test3
[mkdir] Created dir: /tmp/anttest/test3
[touch] Creating /tmp/anttest/test3/foo
[delete] Deleting: /tmp/anttest/test.zip
[zip] Building zip: /tmp/anttest/test.zip
[zip] Updating zip: /tmp/anttest/test.zip
[zip] Updating zip: /tmp/anttest/test.zip
BUILD SUCCESSFUL
Total time: 2 seconds
It should instead fail when it tries to do the second update of the .zip file.
---------------------------------------------------------------------
To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org