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

Not

public class Not extends ConditionBase implements Condition
<not> condition. Evaluates to true if the single condition nested into it is false and vice versa.
since
Ant 1.4

Fields Summary
Constructors Summary
Methods Summary
public booleaneval()
Evaluate condition

return
true if the condition is true.
throws
BuildException if the condition is not configured correctly.

        if (countConditions() > 1) {
            throw new BuildException("You must not nest more than one "
                + "condition into <not>");
        }
        if (countConditions() < 1) {
            throw new BuildException("You must nest a condition into <not>");
        }
        return !((Condition) getConditions().nextElement()).eval();