FileDocCategorySizeDatePackage
And.javaAPI DocApache Ant 1.701604Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.taskdefs.condition

And

public class And extends ConditionBase implements Condition
<and> condition container.

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

since
Ant 1.4

Fields Summary
Constructors Summary
Methods Summary
public booleaneval()

return
true if all the contained conditions evaluates to true
exception
BuildException if an error occurs

        Enumeration e = getConditions();
        while (e.hasMoreElements()) {
            Condition c = (Condition) e.nextElement();
            if (!c.eval()) {
                return false;
            }
        }
        return true;