Klasse OperatingSystemFamily

java.lang.Object
org.gradle.nativeplatform.OperatingSystemFamily
Alle implementierten Schnittstellen:
Named

public abstract class OperatingSystemFamily extends Object implements Named
Represents the operating system of a configuration. Typical operating system include Windows, Linux, and macOS. This interface allows the user to customize operating systems by implementing this interface.
Seit:
5.1
  • Felddetails

  • Konstruktordetails

    • OperatingSystemFamily

      public OperatingSystemFamily()
  • Methodendetails

    • getName

      @Input public abstract String getName()
      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.
    • isWindows

      public boolean isWindows()
      Is this the Windows operating system family?
    • isLinux

      public boolean isLinux()
      Is this the Linux operating system family?
    • isMacOs

      public boolean isMacOs()
      Is this the macOS operating system family?