ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sarah.kho" <sarah....@gmail.com>
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

Hi
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}/dist.zip" update="true">
 <zipfileset   dir="/opt" includes="settings.conf"
fullpath="/conf/settings.conf"/>
        </zip>
    </target>

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.

Thanks


-- 
View this message in context: http://www.nabble.com/Can-not-overwrite-a-file-in-a-zip-archive.The-old-file-remains-instead-of-new-file.-tp25530178p25530178.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message