ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: new line in echo
Date Mon, 29 Apr 2002 16:42:52 GMT
Faced the same problem I think. I could only come up with this:

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

I think I remember trying:

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

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

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

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???


-----Original Message-----
From: Siamack Farshi [] 
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

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

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

thanks for the reply,

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

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

View raw message