org.apache.tools.ant.taskdefs
Class ConditionTask

java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.condition.ConditionBase
        |
        +--org.apache.tools.ant.taskdefs.ConditionTask

public class ConditionTask
extends ConditionBase

<condition> task as a generalization of <available> and <uptodate>

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.

Version:
$Revision: 1.1 $
Author:
Constructor Summary
ConditionTask()
           
 
Method Summary
 void execute()
          See whether our nested condition holds and set the property.
 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.
 
Methods inherited from class org.apache.tools.ant.taskdefs.condition.ConditionBase
addAnd, addAvailable, addEquals, addNot, addOr, addOs, addUptodate, countConditions, getConditions, getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionTask

public ConditionTask()
Method Detail

setProperty

public void setProperty(java.lang.String p)
The name of the property to set. Required.
Since:
1.1

setValue

public void setValue(java.lang.String v)
The value for the property to set. Defaults to "true".
Since:
1.1

execute

public void execute()
             throws BuildException
See whether our nested condition holds and set the property.
Since:
1.1


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.