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 42301] New: - Suggestion: Make macrodef text optional
Date Mon, 30 Apr 2007 18:22:32 GMT
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: miamidot@gmail.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message