On Wed, Dec 16, 2009 at 9:32 AM, Antoine Levy Lambert <anto...@gmx.de> wrote: > is a sequence of tasks. If the process is highly configurable, there can be > several blocks of tasks which are optionally executed.
Maybe a custom executor that blocks some targets would work for you? Depends how these properties that prevent a target from executing (including their dependencies) are set or computed, but from the command line you could say ant deploy /block:war to launch the deploy target, completely forcing the removal of the war target from the target dependency graph. I guess the issue with your proposed deep if/unless is when that condition is evaluated. IMHO, once the DAG has been resolved and targets start running, it's too late. If you decide to block from the command line, that's OK, because you in effect "edit" the script on the fly before it started, to remove a dependency occurring anywhere in the DAG, overriding the build author's intention on purpose. But once it's started, the effect of removing a dependency in the middle could reorder the build in such a way that it's now incompatible with the targets already executed so far, and this to me makes it brittle and undesirable. My $0.02. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org