Package org.gradle.nativeplatform
Class OperatingSystemFamily
java.lang.Object
org.gradle.nativeplatform.OperatingSystemFamily
- All Implemented Interfaces:
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.
- Since:
- 5.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The Linux operating system family.static final String
The macOS operating system family.static final Attribute<OperatingSystemFamily>
static final String
The Windows operating system family. -
Constructor Summary
-
Method Summary
-
Field Details
-
OPERATING_SYSTEM_ATTRIBUTE
-
WINDOWS
The Windows operating system family.- See Also:
-
LINUX
The Linux operating system family.- See Also:
-
MACOS
The macOS operating system family.- See Also:
-
-
Constructor Details
-
OperatingSystemFamily
public OperatingSystemFamily()
-
-
Method Details
-
getName
The object's name.Must be constant for the life of the object.
-
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?
-