You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Detlef Brendle <de...@canoo.com> on 2002/10/16 11:22:41 UTC

Zip in Ant 1.5.1

Hi ,
I currently upgrading my ant projects to run with Ant 1.5.1 and I
encountered one thing which I dont understand.

When updating a zip file which already exists it fails if the to-update
files are older than the zip file itself. I checked the code base and it
seems that a 'quick exit' in the zip build process doesnt make much sense.
Rather than ckecking the timestamp of the zip file and those timestamps of
all to-update files it should first check whether the files are already part
of the zip file at all.

Now I wonder whether I dont understand the point behind this check or
whether this is a know restriction of the zip task in Ant 1.5.1.
It seems to work fine with Ant 1.4.1.

My test looks like:

<zip zipfile="xy.jar" update="true"	filesonly="true" >
	<zipfileset dir="c:/test/a" />
</zip>

<zip zipfile="xy.jar" update="true"	filesonly="true" >
	<zipfileset dir="c:/test/b" />
</zip>

The result is that all files from directory 'a' are in the zip file and no
files from 'b'.
(This is because no file from 'b' is newer than the xy.jar file.)

regards,
detlef


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Zip in Ant 1.5.1

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 16 Oct 2002, Detlef Brendle <de...@canoo.com> wrote:

> I currently upgrading my ant projects to run with Ant 1.5.1 and I
> encountered one thing which I dont understand.

<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10755>

> It seems to work fine with Ant 1.4.1.

It doesn't - 1.4.1 would simply always update your archive.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>