@Incubating public enum TaskOutcome extends Enum<TaskOutcome>
BuildTask.getOutcome()| Enum Constant and Description | 
|---|
| FAILEDThe task attempted to execute, but did not complete successfully. | 
| FROM_CACHEThe task executed, but did not perform work as its output was found in a build cache. | 
| NO_SOURCEThe task was skipped due to all input files declared with  @SkipWhenEmptybeing empty. | 
| SKIPPEDThe task was not executed due to some reason. | 
| SUCCESSThe task executed and performed its actions without failure. | 
| UP_TO_DATEThe task was not executed, as its output was up to date. | 
| Modifier and Type | Method and Description | 
|---|---|
| static TaskOutcome | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static TaskOutcome[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final TaskOutcome SUCCESS
public static final TaskOutcome FAILED
public static final TaskOutcome UP_TO_DATE
public static final TaskOutcome SKIPPED
public static final TaskOutcome FROM_CACHE
This outcome only occurs when the build under test has been configured for task output caching.
NOTE: If the Gradle version used for the build under test is older than 3.3, no tasks will have this outcome.
public static final TaskOutcome NO_SOURCE
@SkipWhenEmpty being empty.public static TaskOutcome[] values()
for (TaskOutcome c : TaskOutcome.values()) System.out.println(c);
public static TaskOutcome valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null