Re: How to convert back slashes to forward slashes

2007-08-16 Thread Qazwart
Instead of doing external calls to Perl, Python, or grep, why not use filterChains and filterReaders. You can use the string filter ReplaceString in the TokenFilter. See . On Aug 16, 2007, at 7:03 AM, Mike Stewart wrote:

Re: How to convert back slashes to forward slashes

2007-08-16 Thread Mike Stewart
You can use exec like: Might have to experiment with the single quotes not sure they are required. Mike S. >>> [EMAIL PROTECTED] 09/08/2007 19:04:25 >>> perl ?? I don' t have perl installedso how would the exec call that

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
perl ?? I don' t have perl installedso how would the exec call that perl function??? On 8/9/07, Chun Ji <[EMAIL PROTECTED]> wrote: > > > If this works for you, maybe you can add an "exec" in your ant xml file. > > " perl -pi -e 's/\\//g' " > > > -c > > > > -Original Message- > Fro

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: How to convert back slashes to forward

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