ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Help with subant
Date Mon, 24 May 2004 13:56:33 GMT
> From: Howard M. Lewis Ship [mailto:hlship@comcast.net]
> 
> Anyone have some pointers on using subant to b
> uild projects?
> 
> I've been getting results that don't match the documentation (or the code,
> for that matter):
> 
> 	<macrodef name="reinvoke-ant">
> 		<attribute name="target" />
> 		<element name="parameters" "/>
> 
> 		<sequential>
> 			<antcall target="@{target}" inheritall="false">
> 				<filelist refid="${project.modules}"/>
> 				@{parameters}
> 			</antcall>
> 		</sequential>
> 	</macrodef>
> 
> 	<target name="clean">
> 
> 		<reinvoke-ant target="clean"/>
> 		<antcall target="common.clean"/>
> 
> 	</target>

Two things:
1) If you want to use <subant>, use <subant> and not <antcall>.
2) Your @{parameters} should be <parameters>. Macrodef's attributes
   are de-referenced as @{attr-name} only, elements use <elem-name/>.

--DD

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


Mime
View raw message