BuildListenerpublic class BuildAdapter extends java.lang.Object implements BuildListener
BuildListener adapter class for receiving build events. The methods in this class are empty. This class
exists as convenience for creating listener objects.| Constructor | Description |
|---|---|
BuildAdapter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
beforeSettings(Settings settings) |
Called when the build settings are about to be loaded and evaluated.
|
void |
buildFinished(BuildResult result) |
Deprecated.
|
void |
projectsEvaluated(Gradle gradle) |
Called when all projects for the build have been evaluated.
|
void |
projectsLoaded(Gradle gradle) |
Called when the projects for the build have been created from the settings.
|
void |
settingsEvaluated(Settings settings) |
Called when the build settings have been loaded and evaluated.
|
public void beforeSettings(Settings settings)
BuildListenerbeforeSettings in interface BuildListenersettings - The settings. Never null.public void settingsEvaluated(Settings settings)
BuildListenerCalled when the build settings have been loaded and evaluated. The settings object is fully configured and is ready to use to load the build projects.
settingsEvaluated in interface BuildListenersettings - The settings. Never null.public void projectsLoaded(Gradle gradle)
BuildListenerCalled when the projects for the build have been created from the settings. None of the projects have been evaluated.
projectsLoaded in interface BuildListenergradle - The build which has been loaded. Never null.public void projectsEvaluated(Gradle gradle)
BuildListenerCalled when all projects for the build have been evaluated. The project objects are fully configured and are ready to use to populate the task graph.
projectsEvaluated in interface BuildListenergradle - The build which has been evaluated. Never null.@Deprecated public void buildFinished(BuildResult result)
BuildListenerCalled when the build is completed. All selected tasks have been executed.
buildFinished in interface BuildListenerresult - The result of the build. Never null.