Class Or

  • All Implemented Interfaces:
    java.lang.Cloneable, Condition

    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
    • Constructor Detail

      • Or

        public Or()
    • Method Detail

      • eval

        public boolean eval()
                     throws BuildException
        Description copied from interface: Condition
        Is this condition true?
        Specified by:
        eval in interface Condition
        Returns:
        true if any of the contained conditions evaluate to true
        Throws:
        BuildException - if an error occurs