Interface OperatingSystem
- All Superinterfaces:
Named
A machine operating system.
| Operating System | Aliases |
|---|---|
| Windows | "windows" |
| GNU/Linux | "linux" |
| MacOS | "osx", "mac os x", "darwin" |
| Solaris | "solaris", "sunos" |
- Since:
- 2.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface Named
Named.Namer -
Method Summary
-
Method Details
-
getName
Description copied from interface:NamedThe object's name.Must be constant for the life of the object.
Implementations should not declare a
Object.toString()that returns anything other than this name. Gradle derives the name from this method wherever it needs one, but renders the object withtoString()in diagnostics, so the two disagreeing produces output that contradicts the behavior it describes. This is easy to miss on anenum, which inherits atoString()returningEnum.name(). -
getDisplayName
-
isCurrent
-
isWindows
-
isMacOsX
-
isLinux
-
isSolaris
-
isFreeBSD
-