ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From himanshu <>
Subject problem using "<replaceregexp>" when using with DIRECTORY location
Date Tue, 25 Oct 2011 08:15:12 GMT
i am having trouble in doing this..
there is 1 batch file(MY_FILE) with this line in it..
*set TEST_DIR=C:\temp\dir1*
i just want to set some new value to *TEST_DIR*
but when i use <replaceregexp> in my ant escapes forward
slashes.. and gives this result
*set TEST_DIR=C:homedir2*
but correct value should be as below
*set TEST_DIR=C:\home\dir2*
.. i am using this command in my ant build file..

<property name="MY_FILE" location="${MT_BATCH_FILE_LOCATION}\myfile.bat" />
<replaceregexp file="${MY_FILE}" match="TEST_DIR=C:\\temp\\dir1"
replace="TEST_DIR=C:\home\dir2" byline="true" /> 


..PLZ help

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message