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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to