|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
@Incubating public interface BuildController
Provides a BuildAction various ways to control a Gradle build and access information about the build.
Method Summary | |
---|---|
Object
|
findModel(Class modelType)
Fetches a snapshot of the model of the given type, if available. |
Object
|
findModel(Model target, Class modelType)
Fetches a snapshot of the model of the given type, if available. |
GradleBuild
|
getBuildModel()
Returns an overview of the Gradle build, including some basic details of the projects that make up the build. |
Object
|
getModel(Class modelType)
Fetches a snapshot of the model of the given type for the default project. |
Object
|
getModel(Model target, Class modelType)
Fetches a snapshot of the model of the given type for the given element, usually a Gradle project. |
Method Detail |
---|
@Nullable public Object findModel(Class modelType)
See getModel(Class) for more details.
modelType
- The model type.
- The model type.
@Nullable public Object findModel(Model target, Class modelType)
See getModel(Model, Class) for more details.
modelType
- The model type.
- The model type.
public GradleBuild getBuildModel()
public Object getModel(Class modelType)
Any of following models types may be available, depending on the version of Gradle being used by the target build:
A build may also expose additional custom tooling models. You can use this method to query these models.
modelType
- The model type.
- The model type.
public Object getModel(Model target, Class modelType)
The following elements are supported:
See getModel(Class) for more details.
target
- The target element, usually a project.modelType
- The model type.
- The model type.
Gradle API 1.12