> -----Original Message-----
> From: Dominique Devienne [mailto:[EMAIL PROTECTED]] 
> Sent: 29 April 2002 17:43
> To: 'Ant Users List'
> Subject: RE: new line in echo
> 
> 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...

This worked for me.  Only problem with it is when I run Ant thru'
antRunner/Jbuilder, and my beautifully formatted tables are displayed in a
variable-width font :(  I did think that this was the "recommended" Ant way
of echo-ing mulit-line text, but re-reading the docs they don't specify
multiple *display* lines, just text that spans multiple lines of the build
file.

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

I'll play around tonight, and see what I get.

Cheers
John

 --
John Niven
Please reply through mailing list

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

Reply via email to