Re: How to convert back slashes to forward slashes

2007-08-16 Thread Qazwart
MAIL PROTECTED] 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: log4j.location=C:\

Re: How to convert back slashes to forward slashes

2007-08-16 Thread Mike Stewart
inal Message- > From: broken connection [mailto:[EMAIL PROTECTED] > 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 e

Re: How to convert back slashes to forward slashes

2007-08-09 Thread Geoffrey Mitchell
Peter Reilly wrote: On 8/9/07, broken connection <[EMAIL PROTECTED]> wrote: 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: log4j.location=C:\tomcat\logs This is not a valid property format: see http:

Re: How to convert back slashes to forward slashes

2007-08-09 Thread Peter Reilly
On 8/9/07, broken connection <[EMAIL PROTECTED]> wrote: > 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: > > log4j.location=C:\tomcat\logs This is not a valid property format: see http://java.sun.com/j2se/1.5.0/

Re: How to convert back slashes to forward slashes

2007-08-09 Thread broken connection
\\/g' " > > > -c > > > > -Original Message- > From: broken connection [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 09, 2007 10:40 AM > To: Ant Users List > Subject: How to convert back slashes to forward slashes > Importance: Low > > > Hi F

RE: How to convert back slashes to forward slashes

2007-08-09 Thread Chun Ji
If this works for you, maybe you can add an "exec" in your ant xml file. " perl -pi -e 's/\\//g' " -c -Original Message- From: broken connection [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 10:40 AM To: Ant Users List Subject:

Re: How to convert back slashes to forward slashes

2007-08-09 Thread glenn opdycke-hansen
I believe you need to use the task, see http://ant.apache.org/manual/CoreTasks/pathconvert.html Below is from an example: will generate the path shown below and store it in the property named wl.path.unix. /weblogic/lib/weblogicaux

How to convert back slashes to forward slashes

2007-08-09 Thread broken connection
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: log4j.location=C:\tomcat\logs And that messes up everything.Because \t is interpreted as tab. So, how can i change the backward slashes(windows convention) to forward