ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Multiple properties in target's if/unless
Date Mon, 21 May 2001 06:09:00 GMT
Scotte Zinn <szinn@patronix.com> wrote:

> I came across a need for multiple properties to be checked with a
> target's if clause and it wasn't possible.

> Will Ant be extended to allow a comma-separated list of properties
> in the if/unless block similar to the depends clause?

I don't think Ant1 will be extended in any way to support this, but
for Ant2 we've settled on a task that's going to help a lot in
situations like this.  Something like

<condition property="both.present">
  <and>
    <available file="A" />
    <available file="B" />
  </and>
</condition>

and then have target's if/unless attribute deal with the both.present
property.

Stefan

Mime
View raw message