Top Description Fields Constructors Methods
org.apache.tools.ant.taskdefs.condition

public Class IsTrue

extends ProjectComponent
implements Condition
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.taskdefs.condition.Condition
Imports
org.apache.tools.ant.BuildException, .ProjectComponent

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

Field Summary

Modifier and TypeField and Description
private Boolean
value

what we eval

Inherited from org.apache.tools.ant.ProjectComponent:
descriptionlocationproject

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value
eval
()

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?
public void
setValue(boolean
the value to test
value
)

set the value to be tested; let ant eval it to true/false

Inherited from org.apache.tools.ant.ProjectComponent:
clonegetDescriptiongetLocationgetProjectloglogsetDescriptionsetLocationsetProject

Field Detail

valueback to summary
private Boolean value

what we eval

Constructor Detail

IsTrueback to summary
public IsTrue()

Method Detail

evalback to summary
public boolean eval() throws BuildException

Implements org.apache.tools.ant.taskdefs.condition.Condition.eval.

Doc from org.apache.tools.ant.taskdefs.condition.Condition.eval.

Is this condition true?

Returns:boolean

the value

Annotations
@Override
Exceptions
BuildException:
if someone forgot to spec a value
setValueback to summary
public void setValue(boolean value)

set the value to be tested; let ant eval it to true/false

Parameters
value:boolean

the value to test