ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Saxtoft" ...@sondagsavisen.dk>
Subject RE: Writing java.home to file
Date Thu, 18 Nov 2004 13:08:21 GMT
Well, for me it works that way as well. I had not tried before. 
But my problem persists, and what I left out in my former e-mail was
that I am using the replaceregexp task.
So it must be the replaceregexp task that gives me the problem. I do the
following:

<target name="createServerXml">
    <replaceregexp file="${oc4j_home}/config/server.xml"
    match="&lt;java-compiler [^>]*/>"
    replace="&lt;java-compiler
bindir=&quot;${java.home}/bin&quot;extdirs=&quot;${java.home}/jre/lib/ex
t&quot;/>"/>
  </target>

So the thing is that I probably have to replace all backslashes with a
double backslash before using it in the replaceregexp task. But how do I
do that having the java.home property.

Thanks in advance,

Thomas

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


Mime
View raw message