You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/12/16 00:51:26 UTC

DO NOT REPLY [Bug 32725] New: - Default value for macrodef element parameter

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32725>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32725

           Summary: Default value for macrodef element parameter
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: kk@kohsuke.org


Currently, elements of a macrodef cannot have default values,
even though attributes can have them.

It would be nice if I can write something like:

<macrodef name="foo">
  <element name="a" optional="true">
    <some />
    <tasks />
  </element>
  <sequential> ... </sequential>
</macrodef>

so that the following two invocations would be equivalent:

<foo>
  <a>
    <some />
    <tasks />
  </a>
</foo>

<foo />  <!-- the nested 'a' element defaulted -->

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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