ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: How to convert back slashes to forward slashes
Date Thu, 09 Aug 2007 18:23:42 GMT
On 8/9/07, broken connection <brokenconnection@gmail.com> 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/docs/api/java/util/Properties.html#load(java.io.InputStream)

so how do you store it?
Peter


>
> 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.
> Thanks
> Mick
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message