You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Yaron Ruckenstein <ya...@mobilitec.com> on 2002/12/26 14:44:51 UTC

make the echo task to print in a new line

Hi,

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>
<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,
Yaron




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>