ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vineet Chaoji <cha...@roguewave.com>
Subject Conditional processing in Ant
Date Mon, 01 Jul 2002 22:50:03 GMT
Hi,

I want to set a variable based on some conditions.

<! This is the default -->
<property name="os" value="windows"/>
<condition property="os" value="sun"> <os name="SunOS"/> </condition> 
This does not seem to work. I get the error 
Class org.apache.tools.ant.taskdefs.condition.Os doesn't support the "name"
attribute.
Why should this happen when the Ant manual says that name attribute is
supported?
Is there a workaround?
Thanks,
Vineet



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