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 36217] - macrodef and nested elements
Date Wed, 31 Aug 2005 15:57:12 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=36217>.
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=36217


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From peterreilly@apache.org  2005-08-31 17:57 -------
You need to use the "implicit" attribute.

	<macrodef name="my.javac">
		<attribute name="srcdir" />
		<attribute name="destdir" />
		<element name="classpath" optional="true" implicit="yes"/>
		<sequential>
			<echo message="macro my.javac @{srcdir} @{destdir}" />
			<javac srcdir="@{srcdir}"
					 destdir="@{destdir}"
					 deprecation="on"
					 debug="on"
					 optimize="off">
				<classpath/>
			</javac>
		</sequential>
	</macrodef>

Ps, I would not use the javacc as a task name, as there is already a task
of that name.

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