ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Available or If/Unless problem
Date Thu, 23 Aug 2001 12:49:59 GMT
On Thu, 23 Aug 2001, Andrew Goodnough <Andrew.Goodnough@dana.com>
wrote:

> I built the following build file to narrow down a problem I'm having
> with the If/Unless feature.

(1) if expects the name of the property, not the dereferenced value,
you are checking the properties true and false - both do not exist, so
no target will be executed.

(2) if/unless tests for the existence of a property, not for its
value. In your case, both properties are set and consequently both
targets will be executed if you remove the ${} dereference.

Stefan

Mime
View raw message