ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun Ji" <>
Subject RE: How to convert back slashes to forward slashes
Date Thu, 09 Aug 2007 17:53:54 GMT

If this works for you, maybe you can add an "exec" in your ant xml file. 

" perl -pi -e 's/\\/\\\\/g' <your prop files>" 


-----Original Message-----
From: broken connection []
Sent: Thursday, August 09, 2007 10:40 AM
To: Ant Users List
Subject: How to convert back slashes to forward slashes
Importance: Low

Hi Friends,
I take a directory path input from the end-user and store it in a
property,for example if its windows,it stores it as:


And that messes up everything.Because \t is interpreted as tab. So, how can
i change the backward slashes(windows convention) to forward slashes(unix
convention) in the property before my build file is executed????

Or, how to escape them eg "\" to "\\"

I would appreciate your help.

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

View raw message