ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lou Fox" <lou...@cloud9.net>
Subject Re: back slash and property files
Date Wed, 03 Jul 2002 20:04:11 GMT
Have you tried using two backslashes?  as in c:\\program files\\install
directory
----- Original Message -----
From: "Mike Cavedon" <mc@sonicsoftware.com>
To: <ant-user@jakarta.apache.org>
Sent: Wednesday, July 03, 2002 3:58 PM
Subject: back slash and property files


>
> I have an existing property file that contains properties such as:
>
> INSTALL_DIR=C:\Program Files\Install Directory
>
> This property file is used by several processes, so I want to keep the
> single back slash.
>
> If  I then execute a replacefilter like the following:
>
>             <replacefilter token="@INSTALL_DIR@" property="INSTALL_DIR"/>
>
> My final property looks like:
>
>     <Attribute name="INSTALL_DIR" type="string" value="C:Program
> FilesInstall Directory"/>
>
> Is there any option I can use to tell ANT that the single backslash
> should not be removed during the replace?
>
> Thanks.
>
> Mike
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>


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


Mime
View raw message