Class ScriptCondition
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.optional.AbstractScriptComponent
org.apache.tools.ant.types.optional.ScriptCondition
A condition that lets you include script.
 The condition component sets a bean "self", whose attribute "value"
 must be set to true for the condition to succeed, false to fail.
 The default is 'false'
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.types.optional.AbstractScriptComponentaddText, createClasspath, executeScript, getRunner, initScriptRunner, setClasspath, setClasspathRef, setEncoding, setLanguage, setManager, setManager, setProject, setSetBeans, setSrcMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation
- 
Constructor Details- 
ScriptConditionpublic ScriptCondition()
 
- 
- 
Method Details- 
evalIs this condition true?- Specified by:
- evalin interface- Condition
- Returns:
- true if the condition is true
- Throws:
- BuildException- if an error occurs
 
- 
getValuepublic boolean getValue()get the current value of the condition- Returns:
- true if the condition
 
- 
setValuepublic void setValue(boolean value) set the value of the condition. This is used by the script to pass the return value. It can be used by an attribute, in which case it sets the default value- Parameters:
- value- the value to set the condition to
 
 
-