ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 42447] Add support for conditions to echo task and arg element
Date Mon, 04 Feb 2013 09:49:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=42447

--- Comment #3 from Yitz Gale <gale@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.

Mime
View raw message