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 10:05:36 GMT
On Wed, 21 Apr 2004, Andrew Wong <> wrote:

> So, if 1)all files in the jar is UP TO DATE &
>        2)update="true"
> The jar file will NOT be jar again, am I right ?

2) isn't necessary for this at all.

If Ant version >= 1.5.3 and all files in jar are UP TO DATE (this
includes the Manifest which may contain stuff that changes on each
build, be careful) then <jar> won't do anything.

The update attribute only controls what happens when the jar is not up
to date.


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

View raw message