On 2010-05-11, Jakob Fix <jakob....@gmail.com> wrote: > Hi, looked through the archive, but I don't think pathconvert can be > used in this case.
> property file: > prop=E:\\foo\\bar property files and backslahes are a pain. > build file: > <replaceregexp file="${target.dir}/foobar.xml"> > <regexp pattern="value="[^"]+""/> > <substitution expression="value="${prop}""/> > </replaceregexp> > I also tried double escaping i.e. > prop=E:\\\\foo\\\\bar > but there all backslashes disappear as well. I'm afraid you'd need eight of them. It may be simpler to use forward slashes in your property file and <pathconvert> to translate them after you've applied the regex. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org