ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Tayek <rta...@comcast.net>
Subject Re: can't get crlf in manifest file using echo
Date Thu, 04 Sep 2003 04:03:18 GMT
At 11:52 AM 9/4/03 +1000, you wrote:
>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

this works like a charm :)


>OTOH, you could use the <manifest> task.

also thanks for turning me on to the manifest task.

---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


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


Mime
View raw message