Enum ConsoleOutput

java.lang.Object
java.lang.Enum<ConsoleOutput>
org.gradle.api.logging.configuration.ConsoleOutput
Alle implementierten Schnittstellen:
Serializable, Comparable<ConsoleOutput>, java.lang.constant.Constable

public enum ConsoleOutput extends Enum<ConsoleOutput>
Specifies how to treat color and dynamic console output.
  • 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
    Enable color and rich output when the current process is attached to a console, disable when not attached to a console.
    Disable all color and rich output.
    Enable color and rich output, regardless of whether the current process is attached to a console or not.
    Enable color and rich output like Rich, but output more detailed message.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück.
    static ConsoleOutput[]
    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

    • Plain

      public static final ConsoleOutput Plain
      Disable all color and rich output. Generate plain text only.
    • Auto

      public static final ConsoleOutput Auto
      Enable color and rich output when the current process is attached to a console, disable when not attached to a console.
    • Rich

      public static final ConsoleOutput Rich
      Enable color and rich output, regardless of whether the current process is attached to a console or not. When not attached to a console, the color and rich output is encoded using ANSI control characters.
    • Verbose

      public static final ConsoleOutput Verbose
      Enable color and rich output like Rich, but output more detailed message.
      Seit:
      4.3
  • Methodendetails

    • values

      public static ConsoleOutput[] 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 ConsoleOutput 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