ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaron Ruckenstein" <>
Subject make the echo task to print in a new line
Date Thu, 26 Dec 2002 13:44:51 GMT

I want to print a report to a file, and print each entry of it 
in a new line.

I know how to do it like this:

<echo message="first line" file="${report}"> 
<echo file="${report}" append="true">
<echo message="second line" file="${report}" append="true"> 

But this way is not elegant, and the middle echo must be
in the begging of the line, and this breaks the indentation
(anyway my xml editor objects to it).

Is there any way a new line can be inserted ? 
(same as a unix echo where every call prints to a new line).

Thanks in advance,

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

View raw message