|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.TaskAdapter
net.sf.antcontrib.logic.condition.BooleanConditionTask
public class BooleanConditionTask
Wraps a ConditionBase so that the If task can use standard Ant Conditions as its evaluated boolean expression. Wrapping like this means that future additions to ConditionBase will automatically be picked up without modifying this class.
Developed for use with Antelope, migrated to ant-contrib Oct 2003.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
BooleanConditionTask()
|
Method Summary | |
---|---|
boolean |
eval()
Evaluates the condition object. |
void |
execute()
Forwards to eval(). |
java.lang.Object |
getProxy()
|
void |
maybeConfigure()
Override maybeConfigure in a way that leaves the nested tasks
unconfigured until they get executed. |
void |
setProperty(java.lang.String p)
The name of the property to set. |
void |
setProxy(java.lang.Object proxy)
|
void |
setValue(java.lang.String v)
The value for the property to set, if condition evaluates to true. |
Methods inherited from class org.apache.tools.ant.TaskAdapter |
---|
checkProxyClass, checkTaskClass |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tools.ant.TypeAdapter |
---|
getProject, setProject |
Constructor Detail |
---|
public BooleanConditionTask()
Method Detail |
---|
public java.lang.Object getProxy()
getProxy
in interface org.apache.tools.ant.TypeAdapter
getProxy
in class org.apache.tools.ant.TaskAdapter
public void setProxy(java.lang.Object proxy)
setProxy
in interface org.apache.tools.ant.TypeAdapter
setProxy
in class org.apache.tools.ant.TaskAdapter
public void setProperty(java.lang.String p)
public void setValue(java.lang.String v)
public void maybeConfigure() throws org.apache.tools.ant.BuildException
maybeConfigure
in a way that leaves the nested tasks
unconfigured until they get executed.
maybeConfigure
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.TaskAdapter
org.apache.tools.ant.BuildException
public boolean eval()
eval
in interface org.apache.tools.ant.taskdefs.condition.Condition
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |