ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Help with subant
Date Mon, 24 May 2004 13:56:48 GMT
You meant to use <subant> not <antcall>, I believe.

	Erik


On May 21, 2004, at 8:25 AM, Howard M. Lewis Ship wrote:

> 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" description="Target to achieve in each 
> module."/>
> 		<element name="parameters" description="Parameters passed to the 
> subant task."/>
> 		
> 		<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>
>
> Buildfile: build.xml
>
> clean:
>
> BUILD FAILED
> C:\workspace\jakarta-hivemind\common\project.xml:27: Following error 
> occured while executing this
> line
> C:\workspace\jakarta-hivemind\common\project.xml:15: The <antcall> 
> type doesn't support the nested
> "filelist" element.
>
> Total time: 0 seconds
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
> http://howardlewisship.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message