ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15988] New: - If-else condition structure
Date Sat, 11 Jan 2003 06:41:07 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message