API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.ant.taskdefs. WaitFor View Source
Author(s)
Since
Ant 1.5
Version
Serial
Hierarchy
 Object
      ProjectComponent
          ConditionBase
              WaitFor
Implements
Subclasses
Description
public class WaitFor
  Wait for an external event to occur.
See also:   
Constructors
public WaitFor ()
Constructor, names this task "waitfor".
Methods
Hide/Show inherited methods
public void add (Condition c) [Inherited From ConditionBase]
  Add an arbitrary condition
public void addAnd (And a) [Inherited From ConditionBase]
  Add an <and> condition "container".
public void addAvailable (Available a) [Inherited From ConditionBase]
  Add an <available> condition.
public void addChecksum (Checksum c) [Inherited From ConditionBase]
  Add an <checksum> condition.
public void addContains (Contains test) [Inherited From ConditionBase]
  Add a <contains> condition.
public void addEquals (Equals e) [Inherited From ConditionBase]
  Add an <equals> condition.
public void addFilesMatch (FilesMatch test) [Inherited From ConditionBase]
  Add a <filesmatch> condition.
public void addHttp (Http h) [Inherited From ConditionBase]
  Add an <http> condition.
public void addIsFalse (IsFalse test) [Inherited From ConditionBase]
  Add a <isfalse> condition.
public void addIsFileSelected (IsFileSelected test) [Inherited From ConditionBase]
  Add an <isfileselected> condition.
public void addIsReference (IsReference i) [Inherited From ConditionBase]
  Add an <isreference> condition.
public void addIsSet (IsSet i) [Inherited From ConditionBase]
  Add an <isset> condition.
public void addIsTrue (IsTrue test) [Inherited From ConditionBase]
  Add a <istrue> condition.
public void addNot (Not n) [Inherited From ConditionBase]
  Add an <not> condition "container".
public void addOr (Or o) [Inherited From ConditionBase]
  Add an <or> condition "container".
public void addOs (Os o) [Inherited From ConditionBase]
  Add an <os> condition.
public void addSocket (Socket s) [Inherited From ConditionBase]
  Add a <socket> condition.
public void addUptodate (UpToDate u) [Inherited From ConditionBase]
  Add an <uptodate> condition.
public java.lang.Object clone () throws java.lang.CloneNotSupportedException [Inherited From ProjectComponent]
 
protected int countConditions () [Inherited From ConditionBase]
  Count the conditions.
public java.lang.Object createDynamicElement (java.lang.String name) [Inherited From ConditionBase]
  Create a dynamically discovered condition.
public void execute () throws BuildException
  Check repeatedly for the specified conditions until they become true or the timeout expires.
protectedfinal java.util.Enumeration getConditions () [Inherited From ConditionBase]
  Iterate through all conditions.
public java.lang.String getDescription () [Inherited From ProjectComponent]
  Returns the description of the current action.
public Location getLocation () [Inherited From ProjectComponent]
  Returns the file/location where this task was defined.
public Project getProject () [Inherited From ProjectComponent]
  Returns the project to which this component belongs.
public java.lang.String getTaskName () [Inherited From ConditionBase]
  Returns the name to use in logging messages.
public void log (java.lang.String msg) [Inherited From ProjectComponent]
  Logs a message with the default (INFO) priority.
public void log (java.lang.String msg, int msgLevel) [Inherited From ProjectComponent]
  Logs a message with the given priority.
protected void processSuccess ()
  Actions to be taken on a successful waitfor.
protected void processTimeout ()
  Actions to be taken on an unsuccessful wait.
public void setCheckEvery (long time)
  Set the time between each check
public void setCheckEveryUnit (Unit unit)
  Set the check every time unit
public void setDescription (java.lang.String desc) [Inherited From ProjectComponent]
  Sets a description of the current action.
public void setLocation (Location location) [Inherited From ProjectComponent]
  Sets the file/location where this task was defined.
public void setMaxWait (long time)
  Set the maximum length of time to wait.
public void setMaxWaitUnit (Unit unit)
  Set the max wait time unit
public void setProject (Project project) [Inherited From ProjectComponent]
  Sets the project object of this component.
public void setTaskName (java.lang.String name) [Inherited From ConditionBase]
  Sets the name to use in logging messages.
public void setTimeoutProperty (java.lang.String p)
  Name the property to set after a timeout.
Fields
Hide/Show inherited fields
protected java.lang.String description [Inherited From ProjectComponent]
Description of this component, if any.
protected Location location [Inherited From ProjectComponent]
Location within the build file of this task definition.
protected Project project [Inherited From ProjectComponent]
Project object of this component.
Nested Classes
  WaitFor.Unit
The enumeration of units: millisecond, second, minute, hour, day, week
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar