| Package | Description |
|---|---|
| org.gradle.tooling |
The main interfaces and classes of the Gradle tooling API.
|
| org.gradle.tooling.exceptions |
Exceptions thrown when using the tooling API.
|
| org.gradle.tooling.internal.consumer |
| Modifier and Type | Class and Description |
|---|---|
class |
BuildException
Thrown when a Gradle build fails, or when a model cannot be built.
|
class |
UnknownModelException
Thrown when the client is trying to acquire a model that is unknown to the Tooling API.
|
class |
UnsupportedVersionException
Thrown when the target Gradle version does not support a particular feature.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ResultHandler.onFailure(GradleConnectionException failure)
Handles failures.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ProjectConnection |
GradleConnector.connect()
Creates a connection to the project in the specified project directory.
|
T |
ModelBuilder.get()
Fetch the model, blocking until it is available.
|
<T extends Model> |
ProjectConnection.getModel(Class<T> viewType)
Fetches a snapshot of the model of the given type for this project.
|
void |
BuildLauncher.run()
Execute the build, blocking until it is complete.
|
| Modifier and Type | Class and Description |
|---|---|
class |
UnsupportedBuildArgumentException
Thrown when the
BuildLauncher has been configured
with unsupported build arguments. |
class |
UnsupportedOperationConfigurationException
Thrown when the
LongRunningOperation has been configured
with unsupported settings. |
| Modifier and Type | Method and Description |
|---|---|
ProjectConnection |
DefaultGradleConnector.connect() |
T |
DefaultModelBuilder.get() |
Copyright © 2013. All rights reserved