ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EetieD <...@leanapps.com>
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. -->
			<sequential>
				<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 -->
			</sequential>
		</for>
	</antcall>
	
</macrodef>

-- 
View this message in context: http://www.nabble.com/use-variable-params-in-an-antcall-tp25505175p25505175.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message