For AI agents: the documentation index is at
https://docs.gradle.org/llms.txt
. Request any page with the header
Accept: text/markdown
to get Markdown. User manual pages are also available as Markdown by replacing
.html
with
.md
in the URL.
gradle
Toggle table of contents
9.9.1
API
Target filter
API
Switch theme
Search in API
Skip to content
gradle
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"
Since
2.2
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
The object's name.
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?