| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.taskdefs.condition.ConditionBase
              |
              +--org.apache.tools.ant.taskdefs.ConditionTask
Task to set a property conditionally using <uptodate>, <available>, and many other supported conditions.
This task supports boolean logic as well as pluggable conditions to decide, whether a property should be set.
This task does not extend Task to take advantage of ConditionBase.
| Field Summary | 
| Fields inherited from class org.apache.tools.ant.ProjectComponent | 
| project | 
| Constructor Summary | |
| ConditionTask() | |
| Method Summary | |
|  void | execute()See whether our nested condition holds and set the property. | 
|  void | setElse(java.lang.String e)The value for the property to set, if condition evaluates to false. | 
|  void | setProperty(java.lang.String p)The name of the property to set. | 
|  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.taskdefs.condition.ConditionBase | 
| add, addAnd, addAvailable, addChecksum, addContains, addEquals, addFilesMatch, addHttp, addIsFalse, addIsReference, addIsSet, addIsTrue, addNot, addOr, addOs, addSocket, addUptodate, countConditions, getConditions | 
| Methods inherited from class org.apache.tools.ant.ProjectComponent | 
| getProject, log, log, setProject | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public ConditionTask()
| Method Detail | 
public void setProperty(java.lang.String p)
p - the name of the propertypublic void setValue(java.lang.String v)
v - the value of the propertypublic void setElse(java.lang.String e)
e - the alternate value of the property.
public void execute()
             throws BuildException
BuildException - if an error occurs| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||