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