FileDocCategorySizeDatePackage
Or.javaAPI DocApache Ant 1.701601Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.condition

Or

public class Or extends ConditionBase implements Condition
<or> condition container.

Iterates over all conditions and returns true as soon as one evaluates to true.

since
Ant 1.4

Fields Summary
Constructors Summary
Methods Summary
public booleaneval()

return
true if any of the contained conditions evaluate to true
exception
BuildException if an error occurs

        Enumeration e = getConditions();
        while (e.hasMoreElements()) {
            Condition c = (Condition) e.nextElement();
            if (c.eval()) {
                return true;
            }
        }
        return false;