ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Concat With Newline
Date Fri, 16 Sep 2005 05:23:54 GMT
Urciolo, Kevin wrote:

>I am using concat to write out configuration files.  The text is
>embedded within the concat.  What is the best way to write out a new
>line at the end?
>
>thanks
>
>  
>
Hello Kevin,

<concat destfile="application.properties">jdbc.host=server1.foobar.com
jdbc.user=joeking
</concat>

will write a 2 lines file with a line separator at the end.

If you want absolutely to have the platform line separator, do


<concat destfile="application.properties">jdbc.host=server1.foobar.com${line.separator}jdbc.user=joeking${line.separator}</concat>

Hopes this helps

Antoine


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


Mime
View raw message