You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2013/02/04 10:49:31 UTC

[Bug 42447] Add support for conditions to echo task and arg element

https://issues.apache.org/bugzilla/show_bug.cgi?id=42447

--- Comment #3 from Yitz Gale <ga...@sefer.org> ---
I voted for this enhancement, for adding <conditional> as an allowed child of
<arg>. Allowing if and unless as attributes would also be a nice shortcut for
some cases.

This is a very common requirement. Currently it is only possible either by
constructing optional parameters as string and using "line=...", or by using
<script>. Using "line=" is not always possible, because it makes it impossible
to use Ant's built in quoting and processing of special strings such as paths.
Using <script> is not always possible because it has additional library
dependencies which are not always possible to satisfy, depending on the
deployment scenario.

As stated in a previous comment, allowing conditionals for tasks is less
important, since this can already be done, although in awkward ways.

-- 
You are receiving this mail because:
You are the assignee for the bug.