ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject RE: Carriage Return in files.
Date Fri, 18 May 2001 01:51:59 GMT
This looks better

<echo file="myfile.txt" append="true">This is
a multiline echo
</echo>

but interestingly it creates Unix style files on my Windows box. I might
look into that.

Conor


> -----Original Message-----
> From: Diane Holt [mailto:holtdl@yahoo.com]
> Sent: Friday, 18 May 2001 8:32 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: Carriage Return in files.
>
>
> --- M Nair <manojnair@mediaone.net> wrote:
> > I write to a file using the
> > <echo message="line.txt
> > line2.txt" file="myfile.txt" append="true" />
> > construct. How do I make ant insert a Carriage Return after line.txt in
> > the
> > file myfile.txt as it writes to it?
>
> Would you believe:
>   <echo file="myfile.txt" append="true"
>         message="line.txt&#x0A;line2.txt"/>
>
> (Unless someone knows a more elegant way.)
>
> Diane
>
> =====
> (holtdl@yahoo.com)
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>


Mime
View raw message