ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gao Lin <aoi...@gmail.com>
Subject How to concat string in ant
Date Fri, 05 Jun 2009 06:45:00 GMT
Hi:

  I want to concat some strings from a list to one string line.

like:

<for list="${strs.list}" delimiter="," param="str">
	<sequential>
		<property name="long-string" value= " @{str}" />
                <!-- Because property is immutable,  the
${long-string}  is the first element of the list: ${strs.list} -->
	</sequential>
</for>

for example above, if the list of ${strs.list} is:  {a, b, c}, how can
I get a string with value: string = "a b c" ?

do you guys know what is better way to implement this WITHOUT writing own Task?

-- 
Thanks and Best Regards

aoingl@gmail.com

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


Mime
View raw message