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

           Summary: Suggestion: Make macrodef text optional
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


I would like to propose enhancement to allow the text attribute of a macrodef 
to take a default value ...

[code]
  <macrodef name="log" >
    <attribute name="log.file" default="${base.dir}/logs/${DSTAMP}" />
    <text name="log.text" default="${DSTAMP}:${TSTAMP}" />

    <sequential>
    </sequential>
  </macrodef>
[/code]


So that I could invoke the macrodef in either of these choices.
Choice 1:
<log/>
Choice 2:
<log>The fixed brown frog humps over the underdog</log>

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

Reply via email to