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 2003/01/11 07:41:07 UTC
DO NOT REPLY [Bug 15988] New: -
If-else condition structure
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15988>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15988
If-else condition structure
Summary: If-else condition structure
Product: Ant
Version: 1.5.1
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: shawn@pobox.com
I'm finding that I write lots of things like this to achieve an if-else
property setting structure with the condition task:
<condition property="myProp" value="value1">
some condition...
</condition>
<condition property="myProp" value="value2">
<not>some condition...</not>
</condition>
You can see that I want to set a property to one thing if a certain condition
holds, and to another otherwise. I am proposing a new attribute for the
condition task called 'otherwise' which is optional and sets the property to a
second value if the condition is not met. For example:
<condition property="myProp" value="value1" otherwise="value2">
some condition...
</condition>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>