ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Question about use of property files
Date Wed, 23 Jun 2004 11:12:40 GMT
Inside Ant it doesnt matter whether you have slash or backslash.
Sometimes its important for outside use (e.g. when you create an INI-file).

When I needed that I used the <propertyregex> from ant-contrib.
Or write a <scriptdef> and use String.replace() to change the delimiter.


Jan


> -----Urspr√ľngliche Nachricht-----
> Von: Robert Mark Bram [mailto:relaxedrob@optusnet.com.au]
> Gesendet am: Dienstag, 22. Juni 2004 19:09
> An: Ant
> Betreff: Question about use of property files
> 
> Hi All!
> 
> I have been trying out property files like this:
>     <property file="${conf}/${os.name}.properties"/>
>     <property file="${conf}/default.properties"/>
> 
> With values like this:
> policy=${conf}/policy.all
> 
> My problem is that when they come out in Windows, the path 
> separators are 
> incorrect. For example:
> F:\java\jiniHelloWorld\conf/policy.all
> 
> This problem is avoided when the property is declared as a 
> location within 
> the xml file.. is there a way I can do the same for a 
> property that is 
> declared in an external property file?
> 
> Thanks for any advice!
> 
> Rob
> :)
> -- 
> Robert Mark Bram
> B.Comp.(Systems Development/Business Systems)
> B.Net.Comp.(Hons)
> Doctor of Philosophy Student
> 
> School of Network Computing
> Faculty of Information Technology
> Monash University
> Peninsula Campus
> McMahons Rd
> Frankston, VIC 3199
> AUSTRALIA
> 
> Phone:  61 3 9904 4394
> Facsimile:  61 3 9904 4124
> Email: robert.mark.bram@infotech.monash.edu.au
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message