ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EetieD <>
Subject use variable params in an antcall
Date Fri, 18 Sep 2009 08:52:45 GMT

I would like to put a variable set of params into a antcall, but
unfortunately, I got the message 'antcall doesn't support the nested "for"
element.' :-(  I put my code below...

Is there an other way to add a variable set of params into an antcall?

I hope someone can help. Thanks!  

<macrodef name="callDoAll">

	<!-- input of the parameters, comma separated -->
	<attribute name="params"/> <!-- for example 'file=readme1.txt, level=all'
	<antcall target="doAll">
		<for list="@{params}" param="task" delimiter=","> <!-- ERROR HERE: antcall
doesn't support the nested "for" element. -->
				<propertyregex property="name"...  <!-- get the left part of
'file=readme1.txt' : file -->
				<propertyregex property="value"... <!-- get the right part of
'file=readme1.txt': readme1.txt -->
				  <!-- sets the param for the antcall -->

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message