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 32638] - Enhancement to <macrodef> to support new feature.
Date Fri, 10 Dec 2004 16:29:18 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=32638>.
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=32638





------- Additional Comments From peterreilly@apache.org  2004-12-10 17:29 -------
Another idea would be to use local properties to say if an attribute/element
is set or not, then one could use the usually ant idiom of using the if
attribute to test for the presence of an attribute/element.

<macrodef name="x">
   <element name="contents" optional="yes"/>
   <sequential>
      <my:sequential if="contents.element.set">
          <copy ../>
      </my:seqential>
   </sequential>
</macrodef>


-- 
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