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 27175] New: - MacroDef doesn't allow properties named 'description'
Date Mon, 23 Feb 2004 19:25:08 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=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: dev@ant.apache.org
        ReportedBy: jraymond@accelerantmobile.com


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>descriptn=@{descriptn}</echo>
      </sequential>
   </macrodef>

   <macrodef name="broken.macro">
      <attribute name="description"/>
      <sequential>
         <echo>description=@{description}</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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message