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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to