ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Barclay <Daniel.Barc...@digitalfocus.com>
Subject Re: propertyfiles task : escape '\' before ':'
Date Thu, 26 Apr 2001 17:09:27 GMT
"LE-RUBRUS,BENOIT (Non-HP-France,ex1)" wrote:
> 
> hi all
> I'm using ant1.3 on windows2000 with jdk1.3.
> I'm trying to set properties to a file using propertyfile optional task.
> I'd like to set a windows absolute path to a variable:
> here is what I'm expecting in the test.properties file:
> 
> myvariable=c:\\mydir
> 
> ************** here is my first target:
> 
> <target name="set1">
>    <propertyfile file="test.properties">
>         <entry key="myvariable" value="c:\\mydir"/>
>    </propertyfile>
> </target>

Do you really want two backslashes in the XML file?  That will yield two
backslashes in the attribute value and the default property value, not one. 

Daniel
-- 
Daniel Barclay
Digital Focus
Daniel.Barclay@digitalfocus.com

Mime
View raw message