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

IsFalse

public class IsFalse extends org.apache.tools.ant.ProjectComponent implements Condition
Condition that tests whether a given string evals to false
since
Ant 1.5

Fields Summary
private Boolean
value
what we eval
Constructors Summary
Methods Summary
public booleaneval()

return
the inverted value;
throws
BuildException if someone forgot to spec a value

        if (value == null) {
            throw new BuildException("Nothing to test for falsehood");
        }
        return !value.booleanValue();
    
public voidsetValue(boolean value)
set the value to be tested; let ant eval it to true/false

param
value the value to test


                           
        
        this.value = value ? Boolean.TRUE : Boolean.FALSE;