ant-user mailing list archives

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

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


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

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

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

View raw message