ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Wall <tw...@oculustech.com>
Subject Re: Conditional target execution based on prerequisite execution
Date Wed, 19 Feb 2003 02:18:28 GMT

On Tuesday, February 18, 2003, at 08:43 PM, Mike Ayers wrote:

>
>> From: Martin [mailto:mgainty@hotmail.com]
>> Sent: Sunday, August 25, 2002 3:05 PM
>
>> 1)The regular Target dependency tree
>
> 	This, it should be noted, is really no different from make.  It can 
> just be difficult to line up features between the two.
>
>> 2)Targets which should be executed everytime the Project
>> build is invoked.
>
> 	This would be any target which does not have some form of conditional 
> execution.  There are three forms of conditional execution:
>
> 	1)  Explicit condition via "if=" for the target.
>
> 	2)  Implicit condition built into the task
>
> 	3)  Dependencies
>
> 	I think that the biggest conceptual hurdle here is how and whether 
> (2) can be propogated to (3) so that, for instance, a target which 
> contains only a javac task does not trigger execution of targets which 
> depend on it unless it compiled at least one class.
>
Yes, I think that's key.  I'd like to understand better the design 
philosophy between target/task/dependency/uptodate, if there is one.  
Or perhaps the idea of conditional execution was never considered in 
the context of optimizing build script execution.


Mime
View raw message