ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew.W...@adidas.com.hk
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:29:14 GMT
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 all the classes in the jar all up to date, would the jarfile be jar ? Or
it depends on the update attribute ?

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Wednesday, 21 April, 2004 3:48 PM
To: user@ant.apache.org
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)


On Wed, 21 Apr 2004, Andrew Wong <Andrew.Wong@adidas.com.hk> wrote:

>  But for jar, it NEVER jar the file again if the jar file (jarfile
> attribute) exists.

Which version of Ant are you using?  Anything prior to 1.5.3 won't
work properly here.

Also, you probably want to say update="true" in your <jar> task.

Stefan

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message