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 20:41:06 GMT
Rick Genter schrieb:
> The HTML entity for " is &quot;, not &quote;
> (http://www.w3.org/TR/html401/sgml/entities.html#h-24.4.1). Did the OP
> have a typo in his e-mail, or did he try the wrong entity?

don't know if he had a typo in it, but you're right,
of course it should be &quot; instead of &quote;

but i think =

<replace file="${env.DOMAINDIR}/bin/setDomainEnv.${fileext}"
  token='JAVA_OPTIONS="${JAVA_OPTIONS}"'
  value='JAVA_OPTIONS="${JAVA_OPTIONS}"
  -Dweblogic.ProductionModeEnabled=${WEBLOGIC_PRODUCTION_MODE}'/>

is equivalent to

<replace file="${env.DOMAINDIR}/bin/setDomainEnv.${fileext}"
  token="JAVA_OPTIONS=&quot;${JAVA_OPTIONS}&quot;"
  value="JAVA_OPTIONS=&quot;${JAVA_OPTIONS}&quot;
  -Dweblogic.ProductionModeEnabled=${WEBLOGIC_PRODUCTION_MODE}"/>

when the later is the 'cleaner' version, but also more
chars to write ;-)


Regars, Gilbert



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


Mime
View raw message