You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Felix Dorner <FD...@zed.com> on 2009/03/27 09:57:17 UTC
echo + embedded newlines
Hey,
I have the following snippet in my ant file:
<echo file="...">This is the first line A
This is the second line B
</echo>
When I look at the build file, after the A, I see a CR LF.
When I look at the file that ant echoed to, I only see a LF.
What might be going on here?
Felix
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: echo + embedded newlines
Posted by Felix Dorner <FD...@zed.com>.
This is why:
http://www.w3.org/TR/2004/REC-xml-20040204/#sec-line-ends
>
> What might be going on here?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: echo + embedded newlines
Posted by Dadu The Dude <sa...@yahoo.com>.
This will resolve the problem of new line character in Ant generated echo
file, LF, CRLF, CR LF
--
View this message in context: http://old.nabble.com/echo-%2B-embedded-newlines-tp22737962p28971300.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: echo + embedded newlines
Posted by Dadu The Dude <sa...@yahoo.com>.
Use this my friend:
<echo file="${basedir}/project/Readme.txt" append="false">This is the first
line A 
This is the second line B 
</echo>
<echo file="...">This is the first line A
This is the second line B
</echo>
--
View this message in context: http://old.nabble.com/echo-%2B-embedded-newlines-tp22737962p28971248.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org