hi,
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 script..it 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:
http://ant.1045680.n5.nabble.com/Having-trouble-using-replaceregexp-with-DIR-locations-as-string-to-replace-tp4935484p4935484.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]