public class Repeat
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.TaskContainer
Modifier and Type | Field and Description |
---|---|
protected ise.antelope.tasks.typedefs.TimeUnit |
unit |
Constructor and Description |
---|
Repeat() |
Modifier and Type | Method and Description |
---|---|
void |
addTask(org.apache.tools.ant.Task task)
Add a task to repeat.
|
void |
addUntil(BooleanConditionTask c)
"until" is the same as a "bool" as used in assert and if.
|
void |
execute()
Execute all nested tasks, repeating.
|
void |
setCount(int count)
Sets the number of times to repeat, default is 1.
|
void |
setDays(int value)
Set a number of days between repeats.
|
void |
setFailonerror(boolean fail)
Determines whether the build should fail if the time limit has expired on
this task.
|
void |
setHours(int value)
Set a number of hours between repeats.
|
void |
setInterval(int wait)
How long to wait between repeating the nested tasks, default is 10 sec.
|
void |
setMilliseconds(int value)
Set a number of milliseconds between repeats.
|
void |
setMinutes(int value)
Set a number of minutes between repeats.
|
void |
setProperty(java.lang.String p)
Name the property to set after all repeats are complete.
|
void |
setRepeatunit(ise.antelope.tasks.typedefs.TimeUnit unit)
Set the max wait time unit, default is minutes.
|
void |
setSeconds(int value)
Set a number of seconds between repeats.
|
void |
setUnit(java.lang.String unit)
Sets the unit for the time between repeats.
|
void |
setValue(java.lang.String v)
The value for the property to set after all repeats are complete,
defaults to true.
|
void |
setWeeks(int value)
Set a number of weeks between repeats.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void addTask(org.apache.tools.ant.Task task) throws org.apache.tools.ant.BuildException
addTask
in interface org.apache.tools.ant.TaskContainer
task
- A task to executeorg.apache.tools.ant.BuildException
- won't happenpublic void addUntil(BooleanConditionTask c) throws org.apache.tools.ant.BuildException
c
- The feature to be added to the Until attributeorg.apache.tools.ant.BuildException
- Description of Exceptionpublic void setInterval(int wait)
wait
- time between repeatspublic void setUnit(java.lang.String unit)
unit
- valid values are "millisecond", "second", "minute", "hour",
"day", and "week".public void setMilliseconds(int value)
value
- the number of milliseconds between repeats.public void setSeconds(int value)
value
- the number of seconds to wait.public void setMinutes(int value)
value
- the number of milliseconds to wait.public void setHours(int value)
value
- the number of hours to wait.public void setDays(int value)
value
- the number of days to wait.public void setWeeks(int value)
value
- the number of weeks to wait.public void setRepeatunit(ise.antelope.tasks.typedefs.TimeUnit unit)
unit
- The new repeatUnit valuepublic void setFailonerror(boolean fail)
fail
- if true, fail the build if the time limit has been reached.public void setProperty(java.lang.String p)
p
- name of propertypublic void setValue(java.lang.String v)
v
- value for the propertypublic void setCount(int count)
count
- The new repeatCount valuepublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- Description of the Exception