ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Tayek <>
Subject test environment variable and if statement
Date Tue, 05 Feb 2002 01:36:24 GMT
hi, can could someone please give me an example of examining an environment 
variable and the using an if?

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

or maybe classpath has an attrubute if or unless that i could use? where 
can i find a list of attributes?


ray tayek
actively seeking telecommuting work
orange county java users group
hate spam?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message