public class Retry extends Task implements TaskContainer
description, location, project
Constructor and Description |
---|
Retry() |
Modifier and Type | Method and 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)
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
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.