java.lang.Cloneable
, TaskContainer
public class Retry extends Task implements TaskContainer
description, location, project
Constructor | Description |
---|---|
Retry() |
Modifier and Type | Method | Description |
---|---|---|
void |
addTask(Task t) |
set the task
|
void |
execute() |
perform the work
|
void |
setRetryCount(int n) |
set the number of times to retry the task
|
void |
setRetryDelay(int retryDelay) |
set the delay between retries (in milliseconds)
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
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(Task t)
addTask
in interface TaskContainer
t
- the task to retry.public void setRetryCount(int n)
n
- the number to use.public void setRetryDelay(int retryDelay)
retryDelay
- the time between retries.public void execute() throws BuildException
execute
in class Task
BuildException
- if there is an error.