Package org.gradle.testkit.runner
Enum TaskOutcome
- All Implemented Interfaces:
- Serializable,- Comparable<TaskOutcome>,- java.lang.constant.Constable
The outcome of executing a task during a build.
- Since:
- 2.6
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe task attempted to execute, but did not complete successfully.The task executed, but did not perform work as its output was found in a build cache.The task was skipped due to all input files declared with@SkipWhenEmptybeing empty.The task was not executed due to some reason.The task executed and performed its actions without failure.The task was not executed, as its output was up to date.
- 
Method SummaryModifier and TypeMethodDescriptionstatic TaskOutcomeReturns 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.
- 
Enum Constant Details- 
SUCCESSThe task executed and performed its actions without failure.
- 
FAILEDThe task attempted to execute, but did not complete successfully.
- 
UP_TO_DATEThe task was not executed, as its output was up to date.
- 
SKIPPEDThe task was not executed due to some reason. For Gradle version < 3.4, a task may be skipped if it had no work to do (e.g. no source to compile).
- 
FROM_CACHEThe task executed, but did not perform work as its output was found in a build 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. - Since:
- 3.3
 
- 
NO_SOURCEThe task was skipped due to all input files declared with@SkipWhenEmptybeing empty.- Since:
- 3.4
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-