${JAVA_OPTIONS} appears in this file many times.  I only want this
specific instance (JAVA_OPTIONS="${JAVA_OPTIONS}") to be replaced, not
the others.

Thanks, Jeff

-----Original Message-----
From: Gilbert Rebhan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2008 2:28 PM
To: Ant Users List
Subject: Re: How do I escape the " in the replace command?

Gilbert Rebhan schrieb:
> Simon Jeffrey schrieb:
>> I am trying to execute the command below as part of our weblogic 
>> install.
>>
>> Yes the string is part of a file.
>>
>> I have tried using &quote;, \", and \Q \E, but none of these options 
>> has worked.
>>
>> I was not aware of the regexp option.
> 
> untested, try with =
> 
>    <replace file="${env.DOMAINDIR}/bin/setDomainEnv.${fileext}"
>   token='JAVA_OPTIONS="${JAVA_OPTIONS}"'
>   value='JAVA_OPTIONS="${JAVA_OPTIONS}"
> -Dweblogic.ProductionModeEnabled=${WEBLOGIC_PRODUCTION_MODE}'/>
> 

btw. after a second look, regardless whether a solution with regexp
would be more suitable =

i don't understand your try to mask ${JAVA_OPTIONS} with \" ... \"
if you simply write ${...} it will be replaced with the contents/the
value of the property at runtime

Regards, Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to