ise.antelope.tasks
Class And

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by ise.antelope.tasks.BooleanConditionBase
          extended by ise.antelope.tasks.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 $

Field Summary
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
And()
           
 
Method Summary
 boolean eval()
           
 
Methods inherited from class ise.antelope.tasks.BooleanConditionBase
add, addAnd, addAvailable, addChecksum, addContains, addDateBefore, addDateDifference, addEndsWith, addEquals, addFilesMatch, addHttp, addIsFalse, addIsGreaterThan, addIsLessThan, addIsPropertyFalse, addIsPropertyTrue, addIsReference, addIsSet, addIsTrue, addMathEquals, addNot, addOr, addOs, addSocket, addStartsWith, addTimeBefore, addTimeDifference, addUptodate, countConditions, getConditionCount, getConditions, getFirstCondition
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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