|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExecutionListener
This provides runtime information when executing a build. This is a culmination of other gradle listeners to provide common functionality that a tool using Gradle would commonly need access to. In additional to being informated of when tasks are completed, this also provides easy access to gradle's output.
Method Summary | |
---|---|
void |
reportExecutionFinished(boolean wasSuccessful,
BuildResult buildResult,
java.lang.String output)
Notification that execution of all tasks has completed. |
void |
reportExecutionStarted()
Notification that overall execution has been started. |
void |
reportLiveOutput(java.lang.String output)
Report real-time output from gradle and its subsystems (such as ant). |
void |
reportTaskComplete(java.lang.String currentTaskName,
float percentComplete)
|
void |
reportTaskStarted(java.lang.String currentTaskName,
float percentComplete)
Notification that a single task has completed. |
Method Detail |
---|
void reportExecutionStarted()
void reportTaskStarted(java.lang.String currentTaskName, float percentComplete)
currentTaskName
- the task being executedpercentComplete
- the percent complete of all the tasks that make
up the task you requested.void reportTaskComplete(java.lang.String currentTaskName, float percentComplete)
void reportLiveOutput(java.lang.String output)
output
- a single line of text to show.void reportExecutionFinished(boolean wasSuccessful, BuildResult buildResult, java.lang.String output)
wasSuccessful
- whether or not gradle encountered errors.buildResult
- contains more detailed information about the result of a build.output
- the text that gradle produced. May contain error
information, but is usually just status.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |