ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Getting environment variable on Linux or Windows ?
Date Thu, 08 Mar 2001 06:44:16 GMT
Olivier Prouvost <olivier.prouvost@anyware-tech.com> wrote:

> Stefan Bodewig a ├ęcrit :
> 
>> Olivier Prouvost <olivier.prouvost@anyware-tech.com> wrote:
>>
>> > On windows I can initialize my HOME value with C:/user/olivier
>> > but it cause problemes when I initialize a classpath value from
>> > this HOME value...
>>
>> How are you trying to do this?
> 
> In fact I do that with may be an old notation ! I concat values like
> this :
> 
> <property name="lib" value="${Env.HOME}/dev/xxx/lib"/>
> <property name="productClasspath"
>           value="${lib}/a.jar:${lib}/b.jar:${lib}/c.jar"/>
> 

This should work - if you are running Ant on Windows. On Unix, the
colon will always be treated as a path separator - on Windows it will
be a path separator unless it is the second character of an entry and
the first one is a letter.

Stefan

Mime
View raw message