|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface BuildLauncher
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)
Adds a progress listener which will receive progress events as the build executes. |
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)
Sets the java.io.OutputStream that should receive standard error logging from this build. |
BuildLauncher
|
setStandardOutput(java.io.OutputStream outputStream)
Sets the java.io.OutputStream that should receive standard output logging from this build. |
Method Detail |
---|
public BuildLauncher addProgressListener(ProgressListener listener)
listener
- The 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)
outputStream
- The output stream.
public BuildLauncher setStandardOutput(java.io.OutputStream outputStream)
outputStream
- The output stream.
Groovy Documentation