ScriptConditionpublic class ScriptCondition extends AbstractScriptComponent implements org.apache.tools.ant.taskdefs.condition.ConditionA 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' |
Fields Summary |
---|
private boolean | valueresult field |
Methods Summary |
---|
public boolean | eval()Is this condition true?
initScriptRunner();
executeScript("ant_condition");
return getValue();
| public boolean | getValue()get the current value of the conditon
return value;
| public 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
this.value = value;
|
|