ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vineet Chaoji <cha...@roguewave.com>
Subject RE: Conditional processing in Ant
Date Mon, 01 Jul 2002 23:04:48 GMT
I am running ant 1.4 and the user's manual is for 1.4.1.

Thanks,
Vineet

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Monday, July 01, 2002 4:04 PM
To: Ant Users List
Subject: Re: Conditional processing in Ant


Are you running Ant 1.5 (of which the docs online are associated with)?

Also, for your default value - set that *after* <condition> otherwise it
will never be set to anything but "windows".  Remember - properties are
immutable!

    Erik

----- Original Message -----
From: "Vineet Chaoji" <chaoji@roguewave.com>
To: <ant-user@jakarta.apache.org>
Sent: Monday, July 01, 2002 6:50 PM
Subject: Conditional processing in Ant


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


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

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