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: can't get crlf in manifest file using echo
Date Thu, 04 Sep 2003 01:52:38 GMT
On Thu, 4 Sep 2003 10:52 am, Ray Tayek wrote:
> hi, trying to build a manifest file using echo just putting the lines in
> between<echo> and </echo> does not work (using ant 1.5). append does not
> seem to dtrt either. neither does the hack below:
>
>      <target name="manifest" unless="myApp.mf" depends="init">
>          <echo file="myApp.mf" message="Manifest-Version: 1.0\r\n"/>
>          <echo file="myApp.mf" append="true" message="Main-Class:
> Main\r\n"/> </target>
>
> anybody got a clue?
>

Sure - you are using XML so you can't use Java escapes for \r\n - you need to 
use an XML entity such as &#10; for \n

OTOH, you could use the <manifest> task.

Conor


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message