Schnittstelle OperatingSystem
- Alle Superschnittstellen:
Named
A machine operating system.
| 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 TypMethodeBeschreibungReturns a human-consumable display name for this operating system.getName()The object's name.booleanIs this the current OS?booleanIs it FreeBSD?booleanisLinux()Is it Linux?booleanisMacOsX()Is it macOS?booleanIs it Solaris?booleanIs it Windows?
-
Methodendetails
-
getName
Beschreibung aus Schnittstelle kopiert:NamedThe object's name.Must be constant for the life of the object.
-
getDisplayName
Returns a human-consumable display name for this operating system. -
isCurrent
Is this the current OS? -
isWindows
Is it Windows? -
isMacOsX
Is it macOS? -
isLinux
Is it Linux? -
isSolaris
Is it Solaris? -
isFreeBSD
Is it FreeBSD?
-