ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt" <mathews_jul...@hotmail.com>
Subject RE: can't get crlf in manifest file using echo
Date Thu, 04 Sep 2003 23:36:25 GMT
Why don't u use the ant manifest task instead or trying to echo stuff to
the manifest files. Like this.

	<manifest file="${manifest.file}">  
  	<attribute name="Built-By" value="${user.name}"/>
    	<attribute name="Version-Number" value="v${build.time}"/>
	 </manifest>
  
Matt

-----Original Message-----
From: Ray Tayek [mailto:rtayek@comcast.net] 
Sent: Wednesday, September 03, 2003 9:03 PM
To: Ant Users List
Subject: Re: can't get crlf in manifest file using echo

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


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


Mime
View raw message