ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Tayek <rta...@mediaone.net>
Subject Re: test environment variable and if statement
Date Tue, 05 Feb 2002 02:03:28 GMT
At 05:47 PM 2/4/02 -0800, you wrote:
>--- Ray Tayek <rtayek@mediaone.net> wrote:
> > i am trying to put in different classpaths depending on whether i am on
> > windoze or linux.
> >
> > something like:
> >
> > if ${unix}=true
> >          then <pathelement location="foo/helper.jar"/>
> >          else <pathelement location="c:\lbar\helper.jar"/>
> > fi
>
>   <target name="setClasspath">
>     <condition property="classpath" value="foo/helper.jar">
>       <os family="unix" />
>     </condition>
>     <condition property="classpath" value="c:\lbar\helper.jar">
>       <os family="windows" />
>     </condition>
>   </target> ...

what is <condition? is it just the name of a single property value pair or 
is this defined in ant as something special?

what is the <os family stuff? where is this defined?

how would the family be set or used to decide what to do?

sorry to be so confused :(

thanks

---
ray tayek http://home.earthlink.net/~rtayek/
actively seeking telecommuting work
orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


--
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