You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2004/04/21 09:34:14 UTC
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 <An...@adidas.com.hk> wrote:
> Hi, How to write an build script so that the jar get updated ONLY
> when its .class is compiled (i.e. the java get changed) I can't do
> it with uptodate tag
You don't do anything special at all.
<javac> doesn't do anything if your .class files are more recent than
your .java files.
<jar> doesn't do anything if the jar file content is more recent than
what you'd want to add.
So all you do is simply use <javac> and <jar> and let the tasks take
care of the rest.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org