1 18 19 package org.apache.tools.ant.taskdefs.condition; 20 21 import java.util.Enumeration ; 22 import org.apache.tools.ant.BuildException; 23 24 32 public class Or extends ConditionBase implements Condition { 33 34 38 public boolean eval() throws BuildException { 39 Enumeration e = getConditions(); 40 while (e.hasMoreElements()) { 41 Condition c = (Condition) e.nextElement(); 42 if (c.eval()) { 43 return true; 44 } 45 } 46 return false; 47 } 48 49 } 50 | Popular Tags |