|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of model to buildpublic interface ModelBuilder<T extends Project>
A ModelBuilder allows you to fetch a snapshot of the model for a project.
You use a ModelBuilder as follows:
ModelBuilder by calling ProjectConnection.model(Class).
get() or get(ResultHandler) to build the model.
Instances of ModelBuilder are not thread-safe.
| Method Summary | |
|---|---|
ModelBuilder<T> |
addProgressListener(ProgressListener listener)
Adds a progress listener which will receive progress events as the model is being built. |
T |
get()
Fetch the model, blocking until it is available. |
void |
get(ResultHandler<? super T> handler)
Starts fetching the build. |
ModelBuilder<T> |
setStandardError(OutputStream outputStream)
Sets the OutputStream which should receive standard error logging generated while building the model. |
ModelBuilder<T> |
setStandardOutput(OutputStream outputStream)
Sets the OutputStream which should receive standard output logging generated while building the model. |
| Method Detail |
|---|
ModelBuilder<T> setStandardOutput(OutputStream outputStream)
OutputStream which should receive standard output logging generated while building the model. The default is to discard the output.
outputStream - The output stream.
ModelBuilder<T> setStandardError(OutputStream outputStream)
OutputStream which should receive standard error logging generated while building the model. The default is to discard the output.
outputStream - The output stream.
ModelBuilder<T> addProgressListener(ProgressListener listener)
listener - The listener
T get()
throws GradleConnectionException
UnsupportedVersionException - When the target Gradle version does not support the features required to build this model.
BuildException - On some failure executing the Gradle build.
GradleConnectionException - On some other failure using the connection.
IllegalStateException - When the connection has been closed or is closing.
void get(ResultHandler<? super T> handler)
throws IllegalStateException
handler - The handler to supply the result to.
IllegalStateException - When the connection has been closed or is closing.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||