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:\
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
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:
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/
\\/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
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:
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
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