ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Corbin <dcor...@machturtle.com>
Subject Re: Conditional task execution
Date Mon, 18 Dec 2000 12:16:56 GMT
Peter Donald wrote:
> 
> At 08:30  17/12/00 -0500, David Corbin wrote:
> >The javac task has some conditionality in it, I think, that says "don't
> >compile those class files that haven't changed".  I want to find a way
> >to do something similar for other tasks/targets.
> >
> >For example, if I have something like this:
> >
> ><target name="foo">
> >       <exec executable="foomaker">
> >               <arg>foosrc</arg>
> >       </exec>
> ></target>
> >
> >How do I get it to ONLY run when foosrc is newer than foo?
> >Thanks.
> 
> Unfortiunately you have to program it in ;( atm - Ant2.0 will significantly
> ease this but that is a while off. You may want to have a look at the
> UpToDate task for an idea about how to go about it thou.
> 

I found the UpToDate task, but there is no example that I can find on
how to use.  I tried several things, and they failed.  Can you provide
an example?

> Cheers,
> 
> Pete
> 
> *-----------------------------------------------------*
> | "Faced with the choice between changing one's mind, |
> | and proving that there is no need to do so - almost |
> | everyone gets busy on the proof."                   |
> |              - John Kenneth Galbraith               |
> *-----------------------------------------------------*

-- 
David Corbin 		
Mach Turtle Technologies, Inc.
http://www.machturtle.com
dcorbin@machturtle.com

Mime
View raw message