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:[EMAIL PROTECTED]
> Sent: Wednesday, June 13, 2001 9:19 AM
> To: [email protected]
> 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.
>