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 09:46:55 GMT
 
 

-----Original Message-----
From: Daniel Gröndal [mailto:daniel.grondal@ericsson.com] 
Sent: Monday, June 02, 2008 11:30 AM
To: user@ant.apache.org
Subject: how to echo propertyset to file?

p.s. beware of the typos ;-) forgot also the append="true" attribute
in the echo task

corrected =

...

Just use =
<echo file="file/to/dump/to/props.ext">${toString:midlet.properties}</echo>

...

use antcontrib <for> to get it line separated, something like=

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


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