FileDocCategorySizeDatePackage
IsTrue.javaAPI DocApache Ant 1.701723Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.condition

IsTrue

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

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

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

        if (value == null) {
            throw new BuildException("Nothing to test for truth");
        }
        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;