ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledgeinc.com>
Subject Re: Setting a property based on the OS
Date Mon, 20 Aug 2001 21:11:30 GMT
How would this then be used in a target?

----- Original Message ----- 
From: "Stefan Bodewig" <bodewig@apache.org>
To: <ant-user@jakarta.apache.org>
Sent: Monday, August 20, 2001 1:04 PM
Subject: Re: Setting a property based on the OS


> On Mon, 20 Aug 2001, Kurien Mathew <kurien@envivio.com> wrote:
> 
> > Is it possible to set a property based on the OS?
> 
> > redist
> >  |- win32
> >  |- mac
> >  |- linux
> > 
> 
> Using 1.4beta
> 
> <condition property="redistdir" value="redist/win32">
>   <os family="windows" />
> </condition>
> <condition property="redistdir" value="redist/mac">
>   <os family="mac" />
> </condition>
> <condition property="redistdir" value="redist/linux">
>   <equals arg1="${os.name}" arg2="Linux" />
> </condition>
> 
> Stefan
> 


Mime
View raw message