Class And

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

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

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

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

      • And

        public And()
    • 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 all the contained conditions evaluates to true
        Throws:
        org.apache.tools.ant.BuildException - if an error occurs