Package org.gradle
Class BuildAdapter
java.lang.Object
org.gradle.BuildAdapter
- All Implemented Interfaces:
BuildListener
A
BuildListener
adapter class for receiving build events. The methods in this class are empty. This class
exists as convenience for creating listener objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildFinished
(BuildResult result) Called when the build is completed.void
buildStarted
(Gradle gradle) Called when the build is started.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.
-
Constructor Details
-
BuildAdapter
public BuildAdapter()
-
-
Method Details
-
buildStarted
Description copied from interface:BuildListener
Called when the build is started.
- Specified by:
buildStarted
in interfaceBuildListener
- Parameters:
gradle
- The build which is being started. Never null.
-
settingsEvaluated
Description copied from interface:BuildListener
Called 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.
- Specified by:
settingsEvaluated
in interfaceBuildListener
- Parameters:
settings
- The settings. Never null.
-
projectsLoaded
Description copied from interface:BuildListener
Called when the projects for the build have been created from the settings. None of the projects have been evaluated.
- Specified by:
projectsLoaded
in interfaceBuildListener
- Parameters:
gradle
- The build which has been loaded. Never null.
-
projectsEvaluated
Description copied from interface:BuildListener
Called 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.
- Specified by:
projectsEvaluated
in interfaceBuildListener
- Parameters:
gradle
- The build which has been evaluated. Never null.
-
buildFinished
Description copied from interface:BuildListener
Called when the build is completed. All selected tasks have been executed.
- Specified by:
buildFinished
in interfaceBuildListener
- Parameters:
result
- The result of the build. Never null.
-