| Constructor and Description |
|---|
TaskStateInternal(String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
executed()
Marks this task as executed.
|
void |
executed(Throwable failure)
Marks this task as executed with the given failure.
|
boolean |
getDidWork()
Checks if the task actually did any work.
|
boolean |
getExecuted()
Returns true if this task has been executed.
|
boolean |
getExecuting() |
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.
|
void |
setDidWork(boolean didWork) |
void |
setExecuting(boolean executing) |
void |
skipped(String skipMessage)
Marks this task as skipped.
|
void |
upToDate()
Marks this task as up-to-date.
|
public TaskStateInternal(String description)
public boolean getDidWork()
TaskStateChecks if the task actually did any work. Even if a task executes, it may determine that it has nothing to do. For example, the Compile task may determine that source files have not changed since the last time a the task was run.
getDidWork in interface TaskStatepublic void setDidWork(boolean didWork)
public boolean getExecuted()
TaskStateReturns true if this task has been executed.
getExecuted in interface TaskStatepublic void executed()
public void executed(Throwable failure)
public void skipped(String skipMessage)
public void upToDate()
public boolean getExecuting()
public void setExecuting(boolean executing)
public Throwable getFailure()
TaskStategetFailure in interface TaskStatepublic void rethrowFailure()
TaskStaterethrowFailure in interface TaskStatepublic boolean getSkipped()
TaskStategetSkipped in interface TaskStatepublic String getSkipMessage()
TaskStategetSkipMessage in interface TaskStateCopyright © 2013. All rights reserved