public interface TaskState
TaskState provides information about the execution state of a Task. You can obtain a
 TaskState instance by calling Task.getState().| 修飾子とタイプ | メソッドと説明 | 
|---|---|
boolean | 
getDidWork()
Checks if the task actually did any work. 
 | 
boolean | 
getExecuted()
Returns true if this task has been executed. 
 | 
Throwable | 
getFailure()
Returns the exception describing the task failure, if any. 
 | 
String | 
getSkipMessage()
Returns a message describing why the task was skipped. 
 | 
boolean | 
getSkipped()
Returns true if the execution of this task was skipped for some reason. 
 | 
void | 
rethrowFailure()
Throws the task failure, if any. 
 | 
boolean getExecuted()
Returns true if this task has been executed.
@Nullable Throwable getFailure()
void rethrowFailure()
boolean getDidWork()
Checks if the task actually did any work. Even if a task executes, it may determine that it has nothing to do. For example, a compilation task may determine that source files have not changed since the last time a the task was run.
boolean getSkipped()