ise.antelope.tasks
Class Or

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

Field Summary
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Or()
           
 
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

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