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> test for a property being true
Date Thu, 18 Apr 2002 07:04:15 GMT
On Wed, 17 Apr 2002, Steve Loughran <steve_l@iseran.com> wrote:

> Proposal: I knock up a quick <isTrue> and <isFalse> condition pair.

+1 - but you may also want to cover "on", not only "true" and "yes".
See Project#toBoolean.

If you want to make that <istrue property="property-name" />  instead of
<istrue value="${property-name}" /> that is (as you'd simply use
setValue(boolean) and let Ant do the translation otherwise).

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