|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LongRunningOperation
Offers ways to communicate both ways with a gradle operation, be it building a model or running tasks.
Enables tracking progress via listeners that will receive events from the gradle operation.
Allows providing standard output streams that will receive output if the gradle operation writes to standard streams.
Allows providing standard input that can be consumed by the gradle operation (useful for interactive builds).
Method Summary | |
---|---|
LongRunningOperation |
addProgressListener(ProgressListener listener)
Adds a progress listener which will receive progress events as the operation runs. |
LongRunningOperation |
setStandardError(OutputStream outputStream)
Sets the OutputStream which should receive standard error logging generated while running the operation. |
LongRunningOperation |
setStandardInput(InputStream inputStream)
Sets the standard InputStream that will be used by builds. |
LongRunningOperation |
setStandardOutput(OutputStream outputStream)
Sets the OutputStream which should receive standard output logging generated while running the operation. |
Method Detail |
---|
LongRunningOperation setStandardOutput(OutputStream outputStream)
OutputStream
which should receive standard output logging generated while running the operation.
The default is to discard the output.
outputStream
- The output stream.
LongRunningOperation setStandardError(OutputStream outputStream)
OutputStream
which should receive standard error logging generated while running the operation.
The default is to discard the output.
outputStream
- The output stream.
LongRunningOperation setStandardInput(InputStream inputStream)
InputStream
that will be used by builds. Useful when the tooling api drives interactive builds.
inputStream
- The input stream
LongRunningOperation addProgressListener(ProgressListener listener)
listener
- The listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |