ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: condition shortcutting
Date Thu, 17 Jan 2002 22:44:43 GMT

----- Original Message ----- 
From: "Stefan Bodewig" <bodewig@apache.org>
To: <ant-dev@jakarta.apache.org>
Sent: Wednesday, January 16, 2002 04:29
Subject: Re: condition shortcutting


> On Mon, 14 Jan 2002, Magesh Umasankar <umagesh@apache.org> wrote:
> > From: "Steve Loughran" <steve_l@iseran.com>
> > 
> >> no, it is like we dont bother evaluating any conditions if the dest
> >> property is already set, because the immutability rules imply that
> >> the condition cannot change the value of the property anyway.
> > 
> > I know it has been advised, but property immutability is
> > not a rule, IIRC.
> 
> True, but <condition> follows it.

exactly. 
 
> >> <condition "box.offline">
> >>  <or>
> >>   <isset property="box.offline"/>
> >>   <http url="http://apache.org/>
> >>  </or>
> >> </condition>
> >>
> > 
> > I like this (the existing way) because it lets the user construct
> > the condition explicitly.
> 
> I agree here.  If people want to short-circuit <condition>, they can
> do so now.  With your patch, they couldn't prevent short-circuit.

OK. 




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


Mime
View raw message