ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [PATCH] Allow "if" and "unless" attributes on the Sequential and Parallel tasks
Date Fri, 24 Aug 2001 05:28:47 GMT
Matthew,

this belongs into the category of scripting like tasks - <if>,
<foreach> and so on - and has been declined by the committers as core
tasks several times before, the last time in the discussion of
features for Ant2.

If you don't get any comments, that doesn't necessarily mean that
everybody agrees with you, but may very well be a "we've been through
that far too often".

If I was to do something like what you want to accomplish with your
task, I'd write an <if> task that extends ConditionBase and has two
Sequential child elements <then> and <else> - and would chose the
Sequential to execute based on the nested condition.  This would be
trivial to write and give you much more power than the if/unless
attributes ...  if I was.

Cheers

        Stefan

Mime
View raw message