ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: How to write an build script so that the jar get updated ONLY whe n its .class is compiled (i.e. the java get changed)
Date Wed, 21 Apr 2004 08:39:16 GMT
On Wed, 21 Apr 2004, Andrew Wong <> wrote:

> The update parameter controls what happens if the JAR file already
> exists.  When set to yes, the JAR file is updated with the files
> specified. When set to no (the default) the JAR file is overwritten.
> Then what is the differences between true & false ?

If a single entry inside the jar is out-of-date, <jar update="true"/>
will add/replace only this entry and keep all the others as they ar in
the original jar.  <jar update="false"/> will discard all content of
the existing archive and create a new one from the files you've


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

View raw message