public class EvalTarget extends org.apache.tools.ant.Target implements ListenableFuture<Object>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.tools.ant.Task |
lastTask |
protected Future<?> |
lastTaskFuture |
protected SettableFuture<Object> |
returnValue |
| Constructor and Description |
|---|
EvalTarget() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Runnable listener,
Executor exec) |
void |
addTask(org.apache.tools.ant.Task task) |
boolean |
cancel(boolean mayInterruptIfRunning) |
void |
execute() |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
addDataType, addDependency, dependsOn, getDependencies, getDescription, getIf, getLocation, getName, getProject, getTasks, getUnless, parseDepends, performTasks, setDepends, setDescription, setIf, setIf, setLocation, setName, setProject, setUnless, setUnless, toStringprotected final SettableFuture<Object> returnValue
protected Future<?> lastTaskFuture
protected org.apache.tools.ant.Task lastTask
public void addTask(org.apache.tools.ant.Task task)
addTask in interface org.apache.tools.ant.TaskContaineraddTask in class org.apache.tools.ant.Targetpublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Targetorg.apache.tools.ant.BuildExceptionpublic Object get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException
get in interface Future<Object>InterruptedExceptionTimeoutExceptionExecutionExceptionpublic Object get() throws InterruptedException, ExecutionException
get in interface Future<Object>InterruptedExceptionExecutionExceptionpublic boolean isCancelled()
isCancelled in interface Future<Object>public boolean cancel(boolean mayInterruptIfRunning)
public void addListener(Runnable listener, Executor exec)
addListener in interface ListenableFuture<Object>