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 26844] New: - Add Parameter attribute which would allow the parameter to be mutable
Date Wed, 11 Feb 2004 01:35: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=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: dev@ant.apache.org
        ReportedBy: dlcole@panhandleenergy.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message