Class Or

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.tools.ant.taskdefs.condition.Condition

    public class Or
    extends BooleanConditionBase
    implements org.apache.tools.ant.taskdefs.condition.Condition
    <or> condition container, modified for Antelope.

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

    Since:
    Ant 1.4
    Version:
    $Revision: 132 $
    • Constructor Detail

      • Or

        public Or()
    • Method Detail

      • eval

        public boolean eval()
                     throws org.apache.tools.ant.BuildException
        Specified by:
        eval in interface org.apache.tools.ant.taskdefs.condition.Condition
        Returns:
        true if any of the contained conditions evaluate to true
        Throws:
        org.apache.tools.ant.BuildException - if an error occurs