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

Add Parameter attribute which would allow the parameter to be mutable

           Summary: Add Parameter attribute which would allow the parameter
                    to be mutable
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


It would be extremely helpful if the parameter task contained an optional 
attribute which would turn the parameter into a mutable parameter. I realize 
that for backwards compatibility that the attribute should be optional and 
default to false, but I cannot tell you how many times this problem has caused 
me to go through additional efforts to come up with a workaround.
If the parameter was mutable then when calling subtasks, if inheritAll="true", 
the subtask should be be working with a reference to the original parameter or 
the parameter value should be copied back to the calling task upon completion 
of the subtask call.

An example of how it might look would be the following:
<parameter name="myparam" value="true" mutable="true"/>

By allowing it to be optionally mutable, I could later us a condition to call a 
subtask which would modify the attribute if needed:

<condition property="myparam">
  <equals arg1="${param1}" arg2="${param2}/>
</condition>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to