org.apache.tools.ant.taskdefs
Class Sleep
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.Sleep
- public class Sleep
- extends Task
A task to sleep for a period of time
- Author:
- steve_l@iseran.com steve loughran
Constructor Summary |
Sleep()
Creates new instance |
Method Summary |
void |
doSleep(long millis)
sleep for a period of time |
void |
execute()
Executes this build task. |
void |
setFailOnError(boolean failOnError)
Sets the FailOnError attribute of the MimeMail object |
void |
setHours(int hours)
Sets the Hours attribute of the Sleep object |
void |
setMilliseconds(int milliseconds)
Sets the Milliseconds attribute of the Sleep object |
void |
setMinutes(int minutes)
Sets the Minutes attribute of the Sleep object |
void |
setSeconds(int seconds)
Sets the Seconds attribute of the Sleep object |
void |
validate()
verify parameters |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sleep
public Sleep()
- Creates new instance
setSeconds
public void setSeconds(int seconds)
- Sets the Seconds attribute of the Sleep object
- Parameters:
seconds
- The new Seconds value
setHours
public void setHours(int hours)
- Sets the Hours attribute of the Sleep object
- Parameters:
hours
- The new Hours value
setMinutes
public void setMinutes(int minutes)
- Sets the Minutes attribute of the Sleep object
- Parameters:
minutes
- The new Minutes value
setMilliseconds
public void setMilliseconds(int milliseconds)
- Sets the Milliseconds attribute of the Sleep object
- Parameters:
milliseconds
- The new Milliseconds value
doSleep
public void doSleep(long millis)
- sleep for a period of time
- Parameters:
millis
- time to sleep
setFailOnError
public void setFailOnError(boolean failOnError)
- Sets the FailOnError attribute of the MimeMail object
- Parameters:
failOnError
- The new FailOnError value
validate
public void validate()
throws BuildException
- verify parameters
- Throws:
BuildException
- if something is invalid
execute
public void execute()
throws BuildException
- Executes this build task. throws org.apache.tools.ant.BuildException
if there is an error during task execution.
- Overrides:
execute
in class Task
- Throws:
BuildException
- Description of Exception
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.