ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Rich" <>
Subject RE: conditional <uptodate>?
Date Thu, 02 Dec 2004 18:41:39 GMT
I think "depends" determines when the target will be fired, "if/unless"
determines whether the target will be fired or not. Therefore, my
understanding is that when the target can be fired the if/unless will be
evaluated to see if it should or not.


-----Original Message-----
From: Gili [] 
Sent: Thursday, December 02, 2004 10:07 AM
To: Stefan Bodewig;
Subject: Re: conditional <uptodate>?

	Correct, except that if you read the Ant documentation it says that
"depends" is not executed before "unless". It says that "depends"
simply declares the order of execution if the dependencies if the target is
being executed (i.e. past the "unless" stage). At least, that's my
interpretation. Am I wrong?


On Thu, 02 Dec 2004 17:24:22 +0100, Stefan Bodewig wrote:

>On Thu, 02 Dec 2004, Gili <> wrote:
>> 	Ok, that I understand but there is the further problem that
>> 	I need the <uptodate> to execute before target B but after
>> 	target A.  Adding it to the "depends" listing of B will not
>> 	help because as the docs specify "depends" is only invoked
>> 	if unless is false and in my case I want the <uptodate> to
>> 	be invoked *before* evaluating ódependsó.
>Unless I'm misunderstanding your requirements, you want
><target name="check-A">
>  <uptodate property="A.uptodate" .../> </target> <target name="A" 
>depends="check-A" unless="A.uptodate">
>  ...
><target name="check-B" depends="A">
>  <uptodate property="B.uptodate" .../> </target> <target name="B" 
>depends="check-B" unless="B.uptodate">
>  ...
>To unsubscribe, e-mail: For additional 
>commands, e-mail:

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

View raw message