Hi all
I have a problem when I use ReplaceRegExp task,the program as below:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="gen_conf_files_pitcher" name="contentlink">
<property file="test.properties"/>
<target name="test">
<replaceregexp byline="true">
<regexp pattern="SET TOMCAT_HOME=(.*)"/>
<substitution expression="SET
TOMCAT_HOME=${multiverse.location}"/>
<fileset dir="." includes="InstallService.bat"/>
</replaceregexp>
</target>
</project>
the test.properties content is as below:
multiverse.location=d:\\multiverse
the InstallService.bat content is as below:
SET TOMCAT_HOME= F:\wfes
After I run above file,the InstallService.bat content is replaced,and the
InstallService.bat content is as below:
SET TOMCAT_HOME= d:multiverse
But there will have a ploblem the blacslash \ has missed,I want to the
InstallService.bat content is
SET TOMCAT_HOME= d:\multiverse
Pls help me how to solve this problem.
Thanks
Xuyong
_____