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 2005/01/13 01:29:12 UTC

DO NOT REPLY [Bug 33074] New: - condition task should support optional value for false

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=33074>.
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=33074

           Summary: condition task should support optional value for false
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P4
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: sjwadsw@pacbell.net


It would be convenient to have the condition task take an additional "otherwise"
value for the property if the condition evaluates to false.  Not supplying this
woulg give the current behaviour, i.e. not setting the property.  

The workaround is simple enough:  use the condition task to set if true, and a
subsequent property task to set if it hasn't been set yet (condition was false.)

It would be both more elegant and clear with something like 

<condition property="prop1" value="true" otherwise="false">
    <some supported condition>
</condition>

The code change is simple.  The documentation changes are a little more
substantial.  (I tested the former, but haven't investigated the latter.)

-- 
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