ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: condition shortcutting
Date Wed, 16 Jan 2002 12:29:32 GMT
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.

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

Stefan

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