In my build file i have an ant target in which i have following snippet ,
<replaceregexp replace="custom.dir=${basedir}/tasks/custom" byline="true" file="${basedir}/MyApp/configuration.properties">
<regexp pattern="custom.dir=(.*)"/>
</replaceregexp>
I wanted to replace the "custom.dir" property with a path in the "configuration.properties" file , however once i execute my target i get the entry for "custom.dir" property modified to
custom.dir=c:arenaplaygroundmytestapp/tasks/custom
instead of
custom.dir=c:\arena\playground\mytestapp/tasks/custom
What should i do to write the path correctly to the "configuration.properties" file with proper file separators . I am on windows and ant used is ant 1.8 .