Enum TaskOutcome

java.lang.Object
java.lang.Enum<TaskOutcome>
org.gradle.testkit.runner.TaskOutcome
Alle implementierten Schnittstellen:
Serializable, Comparable<TaskOutcome>, java.lang.constant.Constable

public enum TaskOutcome extends Enum<TaskOutcome>
The outcome of executing a task during a build.
Seit:
2.6
Siehe auch:
  • Verschachtelte Klassen - Übersicht

    Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum-Konstanten - Übersicht

    Enum-Konstanten
    Enum-Konstante
    Beschreibung
    The 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 @SkipWhenEmpty being 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.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück.
    static TaskOutcome[]
    Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.

    Von Klasse geerbte Methoden java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum-Konstanten - Details

    • SUCCESS

      public static final TaskOutcome SUCCESS
      The task executed and performed its actions without failure.
    • FAILED

      public static final TaskOutcome FAILED
      The task attempted to execute, but did not complete successfully.
    • UP_TO_DATE

      public static final TaskOutcome UP_TO_DATE
      The task was not executed, as its output was up to date.
    • SKIPPED

      public static final TaskOutcome SKIPPED
      The 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_CACHE

      public static final TaskOutcome FROM_CACHE
      The 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.

      Seit:
      3.3
    • NO_SOURCE

      public static final TaskOutcome NO_SOURCE
      The task was skipped due to all input files declared with @SkipWhenEmpty being empty.
      Seit:
      3.4
  • Methodendetails

    • values

      public static TaskOutcome[] values()
      Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieses Enumerationstyps in der Reihenfolge ihrer Deklaration
    • valueOf

      public static TaskOutcome valueOf(String name)
      Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enumerationskonstante in diesem Typ deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn dieser Enumerationstyp keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird