ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: how to echo propertyset to file?
Date Mon, 02 Jun 2008 14:30:16 GMT

-----Original Message-----
From: Daniel Gröndal [mailto:daniel.grondal@ericsson.com] 
Sent: Monday, June 02, 2008 4:25 PM
To: Ant Users List
Subject: RE: how to echo propertyset to file?

/*
Hi!

Well, not too bad. This might be a good starting point. I would however like to replace the
"," with a newline and get an output like this:

foo_four=four
foo_one=one
foo_three=three
foo_two=two

Any ideas on how to do this as well?

//daniel
*/

As already posted in this thread =

means, you get automatically a comma separated list when using
${toString:midlet.properties} and you can dump it separated with
linefeed as you want it with antcontrib <for>

<for list="${toString:midlet.properties}" param="prop">
 <sequential>
   <echo file="file/to/dump/to/props.ext" append="true">@{prop}${line.separator}</echo>
 </sequential>
</for>

that's all


Regards, Gilbert

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


Mime
View raw message