ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: <zip> Not Adding Files
Date Thu, 06 Feb 2003 07:05:49 GMT
This is a well known bug
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10755
You need to download the latest nightly build of ant , for instance from
this URL http://cvs.apache.org/builds/jakarta-ant/nightly/2003-02-04/
Antoine Levy-Lambert
----- Original Message -----
From: "Aidan Monroe" <aidan_avex@yahoo.com>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, February 06, 2003 12:29 AM
Subject: <zip> Not Adding Files


>
> I am trying to get the <zip> task to add some files to an existing .jar
file. I cannot get it to work with an existing file, but it works just fine
when creating a new archive file. Unfortunately, that is not what I want.
>
> I have an existing file in zip format to which I try to add other archives
using the following XML:
>
>  <target name="test" depends="setup">
>   <zip destfile="${output}/my.jar" update="yes">
>    <zipgroupfileset dir="${basedir}/lib/" includes="abc.jar"/>
>   </zip>
>  </target>
>
>
> This does not work. ANT exits cleanly with no error messages but the
existing archive is not modified. If I change the above XML to this, it
works fine (notice the name change of the destfile:
>
>  <target name="test" depends="setup">
>   <zip destfile="${output}/my2.jar" update="yes">
>    <zipgroupfileset dir="${basedir}/lib/" includes="abc.jar"/>
>   </zip>
>  </target>
>
>
> However, this is not what I want. According to the ANT documentation I
should be able to do what I am trying, but I can't get it to work.
>
> Any ideas would be helpful.
>
> Thanks.
>
> A
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Mime
View raw message