Faced the same problem I think. I could only come up with this:

<property name="nl" value="${line.separator}" />
<echo file="${logfile}"
      message="blabla${nl}"
        append="yes" />
<echo file="${logfile}"
      message="more blabla${nl}"
        append="yes" />

I think I remember trying:

<echo file="${logfile}" append="yes" />
Blabla
more blabla
</echo>

and that it didn't work correctly. I'm not sure I tried:

<echo file="${logfile}" append="yes" />
Blabla${nl}
more blabla${nl}
</echo>

It may have had my newline with still the extra incorrect newline for my
platform (W2K). I would have expected <echo> to replace the Text with proper
line termination for the current platform (or a target os), but it didn't or
I couldn't figure out how for sure. Bug???

--DD

-----Original Message-----
From: Siamack Farshi [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 29, 2002 11:29 AM
To: 'Ant Users List'
Subject: new line in echo

Is there a way to force a new line in echo task
I tried the following, but it did not work.

<echo file="${logdir}/${logfile}" append="true">WmlDeviceAdapter
Failed\n</echo>

I do not want to do the following for the end of the line.

<echo file="${logdir}/${logfile}" append="true">WmlDeviceAdapter Failed
</echo>

thanks for the reply,




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to