ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Vogel <pvo...@arsin.com>
Subject RE: Conditional task execution
Date Thu, 14 Jun 2001 01:32:11 GMT
Y'know, I personally think this *very clever* hack around a major
limitation of ant is just further fuel for my argument that 
there should be an <if> and a <foreach> tag.

Explain to me how:

<property name="Is.{$os.name}" value="true"/>

and then later doing <.... if "Is.solaris">

is *descriptive* while

<if property="${os.name" value="solaris" op="=="/>

or some such syntax isn't?

Things that make you go Hmmmmmmm....

-Peter

> -----Original Message-----
> From: Stefano Mancarella [mailto:mancarella@opoipi.bancaintesa.it]
> Sent: Wednesday, June 13, 2001 9:19 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: Conditional task execution
> 
> 
> > Doh, that'll teach me to run off a reply with concentrating.
> > In that case how about setting a property who name is based 
> on the value
> of
> > another property.
> > eg <property name="Is.${os.name}" value="true"/>
> > where os.name property you are interested in.
> 
> I followed your approach and it worked fine.
> Thanks.
> 

Mime
View raw message