|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.tooling.BuildActionExecuter org.gradle.tooling.LongRunningOperation
@Incubating public interface BuildActionExecuter extends LongRunningOperation
Used to execute a BuildAction in the build process.
- The type of result produced by this executer.Method Summary | |
---|---|
Object
|
run()
Runs the action, blocking until its result is available. |
void
|
run(ResultHandler handler)
Starts executing the action, passing the result to the given handler when complete. |
Methods inherited from interface LongRunningOperation | |
---|---|
addProgressListener, setJavaHome, setJvmArguments, setStandardError, setStandardInput, setStandardOutput, withArguments |
Method Detail |
---|
public Object run()
public void run(ResultHandler handler)
If the operation fails, the handler's ResultHandler#onFailure(GradleConnectionException)#onFailure(GradleConnectionException) method is called with the appropriate exception. See run() for a description of the various exceptions that the operation may fail with.
handler
- The handler to supply the result to.
Gradle API 1.12