|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.tooling.BuildLauncher org.gradle.tooling.LongRunningOperation
public interface BuildLauncher extends LongRunningOperation
A BuildLauncher allows you to configure and execute a Gradle build.
You use a BuildLauncher as follows:
Instances of BuildLauncher are not thread-safe.
Method Summary | |
---|---|
BuildLauncher
|
addProgressListener(ProgressListener listener)
{@inheritDoc} |
BuildLauncher
|
forTasks(java.lang.String... tasks)
Sets the tasks to be executed. |
BuildLauncher
|
forTasks(Task... tasks)
Sets the tasks to be executed. |
BuildLauncher
|
forTasks(java.lang.Iterable tasks)
Sets the tasks to be executed. |
void
|
run()
Execute the build, blocking until it is complete. |
void
|
run(ResultHandler handler)
Launchers the build. |
BuildLauncher
|
setStandardError(java.io.OutputStream outputStream)
{@inheritDoc} |
BuildLauncher
|
setStandardInput(java.io.InputStream inputStream)
{@inheritDoc} |
BuildLauncher
|
setStandardOutput(java.io.OutputStream outputStream)
{@inheritDoc} |
Methods inherited from interface LongRunningOperation | |
---|---|
addProgressListener, setStandardError, setStandardInput, setStandardOutput |
Method Detail |
---|
public BuildLauncher addProgressListener(ProgressListener listener)
public BuildLauncher forTasks(java.lang.String... tasks)
tasks
- The paths of the tasks to be executed. Relative paths are evaluated relative to the project for which this launcher was created.
public BuildLauncher forTasks(Task... tasks)
tasks
- The tasks to be executed.
public BuildLauncher forTasks(java.lang.Iterable tasks)
tasks
- The tasks to be executed.
public void run()
public void run(ResultHandler handler)
handler
- The handler to supply the result to.
public BuildLauncher setStandardError(java.io.OutputStream outputStream)
public BuildLauncher setStandardInput(java.io.InputStream inputStream)
public BuildLauncher setStandardOutput(java.io.OutputStream outputStream)
Groovy Documentation