public class GradleRunnerInteractionWrapper extends Object implements ExecuteGradleCommandServerProtocol.ExecutionInteraction
| Constructor and Description |
|---|
GradleRunnerInteractionWrapper(GradleRunnerInteractionVersion1 interactionVersion1) |
| Modifier and Type | Method and Description |
|---|---|
File |
getCustomGradleExecutable() |
LogLevel |
getLogLevel() |
ShowStacktrace |
getStackTraceLevel() |
void |
reportExecutionFinished(boolean wasSuccessful,
String message,
Throwable throwable)
Notification that execution has finished.
|
void |
reportExecutionStarted()
Notification that overall execution has been started.
|
void |
reportLiveOutput(String output)
Report real-time output from gradle and its subsystems (such as ant).
|
void |
reportNumberOfTasksToExecute(int size)
Notification of the total number of tasks that will be executed.
|
void |
reportTaskComplete(String currentTaskName,
float percentComplete) |
void |
reportTaskStarted(String currentTaskName,
float percentComplete)
Notification that a single task has completed.
|
public GradleRunnerInteractionWrapper(GradleRunnerInteractionVersion1 interactionVersion1)
public LogLevel getLogLevel()
public ShowStacktrace getStackTraceLevel()
public void reportExecutionStarted()
reportExecutionStarted in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionpublic void reportNumberOfTasksToExecute(int size)
reportNumberOfTasksToExecute in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionsize - the total number of tasks.public void reportTaskStarted(String currentTaskName, float percentComplete)
reportTaskStarted in interface ExecuteGradleCommandServerProtocol.ExecutionInteractioncurrentTaskName - the task being executedpercentComplete - the percent complete of all the tasks that make up the task you requested.public void reportTaskComplete(String currentTaskName, float percentComplete)
reportTaskComplete in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionpublic void reportLiveOutput(String output)
reportLiveOutput in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionoutput - a single line of text to show.public void reportExecutionFinished(boolean wasSuccessful,
String message,
Throwable throwable)
ExecuteGradleCommandServerProtocol.ExecutionInteractionreportExecutionFinished in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionwasSuccessful - true if gradle was successful (returned 0)message - the output of gradle if it ran. If it didn't, an error message.throwable - an exception if one occurredpublic File getCustomGradleExecutable()
Copyright © 2013. All rights reserved