org.apache.tools.ant.taskdefs.condition

Class IsTrue

Implemented Interfaces:
Condition

public class IsTrue
extends ProjectComponent
implements Condition

Condition that tests whether a given string evals to true
Since:
Ant 1.5

Field Summary

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

boolean
eval()
void
setValue(boolean value)
set the value to be tested; let ant eval it to true/false

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

eval

public boolean eval()
            throws BuildException
Specified by:
eval in interface Condition
Returns:
the value
Throws:
BuildException - if someone forgot to spec a value

setValue

public void setValue(boolean value)
set the value to be tested; let ant eval it to true/false
Parameters:
value - the value to test

Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.