toggle menu
gradle
8.11.1
API
switch theme
search in API
gradle
/
org.gradle.nativeplatform.platform
/
OperatingSystem
Operating
System
API
interface
OperatingSystem
:
Named
(
source
)
A machine operating system.
Windows
"windows"
GNU/Linux
"linux"
MacOS
"osx", "mac os x", "darwin"
Solaris
"solaris", "sunos"
Members
Functions
get
Display
Name
Link copied to clipboard
API
@
Internal
abstract
fun
getDisplayName
(
)
:
String
Returns a human-consumable display name for this operating system.
get
Name
Link copied to clipboard
API
@
Input
abstract
fun
getName
(
)
:
String
is
Current
Link copied to clipboard
API
@
Internal
abstract
fun
isCurrent
(
)
:
Boolean
Is this the current OS?
is
Free
BSD
Link copied to clipboard
API
@
Internal
abstract
fun
isFreeBSD
(
)
:
Boolean
Is it FreeBSD?
is
Linux
Link copied to clipboard
API
@
Internal
abstract
fun
isLinux
(
)
:
Boolean
Is it Linux?
is
Mac
Os
X
Link copied to clipboard
API
@
Internal
abstract
fun
isMacOsX
(
)
:
Boolean
Is it macOS?
is
Solaris
Link copied to clipboard
API
@
Internal
abstract
fun
isSolaris
(
)
:
Boolean
Is it Solaris?
is
Windows
Link copied to clipboard
API
@
Internal
abstract
fun
isWindows
(
)
:
Boolean
Is it Windows?