ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sarah.kho" <>
Subject Can not overwrite a file in a zip archive.The old file remains instead of new file.
Date Mon, 21 Sep 2009 04:48:23 GMT

Thank you for reading my post.
I have a build system which automatically generate a configuration file and
include the generated file in the distribution zip file. I can not modify
the build system to make it include my version of configuration file into
the archive therefore I am trying to use "Zip" task to overwrite the file. 
I defined a target as follow:

<target name="update-zip" depends="zip">
        <zip  destfile="${dist.dir}/" update="true">
 <zipfileset   dir="/opt" includes="settings.conf"

I do not know why but It does not include my own version of configuration
file in the zip file and automatically generated file stays in place.

I tried using COPY task and copy the settings.conf to a new location and
then copy in the zip task and it had no effect.

Please let me know what should I do to make the target work properly in
adding the new version of the file to zip archive.


View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message