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 25687] New: - Macrodef'd Attribute Case
Date Mon, 22 Dec 2003 05:53:31 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=25687>.
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=25687

Macrodef'd Attribute Case

           Summary: Macrodef'd Attribute Case
           Product: Ant
           Version: 1.6.0
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: apache@synecdoche.com


Any attributes passed to a macrodef'd macro are handled as if they are lower-
case.

So if I, for instance, add an attribute:
<macrodef name="mytask">
<attribute name="myAttribute">
...
</macrodef>

And attempt to access it as follows:
<mytask myAttribute="true" />

Ant will tell me the required attribute wasn't supplied.  Whereas if the 
attribute name is 'myattribute' it works regardless of the supplied case of 
attribute in the call.

This behaviour should be improved or, at the very least, the documentation 
should indicate this minor flaw, to avoid confusion.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message