Schnittstelle OperatingSystem

Alle Superschnittstellen:
Named

public interface OperatingSystem extends Named
A machine operating system.
Values
Operating System Aliases
Windows "windows"
GNU/Linux "linux"
MacOS "osx", "mac os x", "darwin"
Solaris "solaris", "sunos"
  • Verschachtelte Klassen - Übersicht

    Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.gradle.api.Named

    Named.Namer
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Returns a human-consumable display name for this operating system.
    The object's name.
    boolean
    Is this the current OS?
    boolean
    Is it FreeBSD?
    boolean
    Is it Linux?
    boolean
    Is it macOS?
    boolean
    Is it Solaris?
    boolean
    Is it Windows?
  • Methodendetails

    • getName

      @Input String getName()
      Beschreibung aus Schnittstelle kopiert: Named
      The object's name.

      Must be constant for the life of the object.

      Angegeben von:
      getName in Schnittstelle Named
      Gibt zurück:
      The name. Never null.
    • getDisplayName

      @Internal String getDisplayName()
      Returns a human-consumable display name for this operating system.
    • isCurrent

      @Internal boolean isCurrent()
      Is this the current OS?
    • isWindows

      @Internal boolean isWindows()
      Is it Windows?
    • isMacOsX

      @Internal boolean isMacOsX()
      Is it macOS?
    • isLinux

      @Internal boolean isLinux()
      Is it Linux?
    • isSolaris

      @Internal boolean isSolaris()
      Is it Solaris?
    • isFreeBSD

      @Internal boolean isFreeBSD()
      Is it FreeBSD?