Class And

java.lang.Object
org.apache.tools.ant.ProjectComponent
All Implemented Interfaces:
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 Details

    • And

      public And()
  • Method Details

    • 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