You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/05/17 21:29:14 UTC
DO NOT REPLY [Bug 42447] New: - Add support for conditions to echo task and arg element
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42447>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42447
Summary: Add support for conditions to echo task and arg element
Product: Ant
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: david.jackman@fastsearch.com
I'm creating some macros to make our build scripts more efficient. In order to
make the macros more flexible, I'd like to have macro attributes that turn on or
off certain command line flags to a program that the macro executes. In some
cases, the macro sends these flags using arg elements within the exec task. In
other cases I'm building an options file that gets passed to the program.
This would be easy if I could do something like this:
<echo file="myoptionsfile" append="true">
<condition>
<istrue value="@{debug}"/>
</condition>
--debug
</echo>
or
<arg value="--debug">
<condition>
<istrue value="@{debug}"/>
</condition>
</arg>
Or here's an even clearer alternative, assuming a property named "true" exists
and a property named "false" does not:
<echo if="@{debug}" file="myoptionsfile" append="true">
--debug
</echo>
or
<arg if="@{debug}" value="--debug" />
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 42447] - Add support for conditions to echo task and arg element
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42447>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42447
------- Additional Comments From stevel@apache.org 2007-05-18 02:31 -------
have you looked at the conditional tasks in ant-contrib on sourceforge? They
should achieve what you want
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
DO NOT REPLY [Bug 42447] - Add support for conditions to echo task and arg element
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42447>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42447
------- Additional Comments From david.jackman@fastsearch.com 2007-05-18 09:40 -------
(In reply to comment #1)
> have you looked at the conditional tasks in ant-contrib on sourceforge? They
> should achieve what you want
I think it might work for the echo (although it's really verbose), but not for
the arg element.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org