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

MacroDef doesn't allow properties named 'description'

           Summary: MacroDef doesn't allow properties named 'description'
           Product: Ant
           Version: 1.6.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The following successfully executes the first macro with the attribute 
of 'descriptn', but the second macro with the attribute 'description' fails 
with the error 'required attribute description not set'.

this should either be fixed, or documented that 'description' is an invalid 
attribute type.

<project default="test">

   <macrodef name="working.macro">
      <attribute name="descriptn"/>
      <sequential>
         <echo>[EMAIL PROTECTED]</echo>
      </sequential>
   </macrodef>

   <macrodef name="broken.macro">
      <attribute name="description"/>
      <sequential>
         <echo>[EMAIL PROTECTED]</echo>
      </sequential>
   </macrodef>

   <target name="test" description="Illustrate MacroDef 'description' 
attribute problem">
      <working.macro descriptn = "A descriptn" />
      <broken.macro description = "A description"/>
   </target>    
</project>

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

Reply via email to