ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <...@schillbaer.de>
Subject Re: How do I escape the " in the replace command?
Date Tue, 24 Jun 2008 21:08:49 GMT
Simon Jeffrey schrieb:
> This version below works :) !!! Very good to know, and really the
> easiest, most straight-forward way to handle double qoutes in your
> source and target strings.
> 
> <replace file="testfile.txt" 
> 	  token='JAVA_OPTIONS="${JAVA_OPTIONS}"'
> 	  value='JAVA_OPTIONS="${JAVA_OPTIONS}
> -Dweblogic.ProductionModeEnabled=${WEBLOGIC_PRODUCTION_MODE}"'/>


> Thanks everyone VERY MUCH!!!  Now hopefully it will work on unix as well
> (I've only tested on windows so far.)

works here on linux with ant 1.7.0/jdk 6, @work those '"'
stuff runs on AIX, should work on your unix box also
"write once run (debug) anywhere" ;-)

Regards, Gilbert

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


Mime
View raw message