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, toString
protected 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.TaskContainer
addTask
in class org.apache.tools.ant.Target
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Target
org.apache.tools.ant.BuildException
public Object get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException
get
in interface Future<Object>
InterruptedException
TimeoutException
ExecutionException
public Object get() throws InterruptedException, ExecutionException
get
in interface Future<Object>
InterruptedException
ExecutionException
public boolean isCancelled()
isCancelled
in interface Future<Object>
public boolean cancel(boolean mayInterruptIfRunning)
public void addListener(Runnable listener, Executor exec)
addListener
in interface ListenableFuture<Object>