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 SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe Linux operating system family.static final StringThe macOS operating system family.static final Attribute<OperatingSystemFamily> static final StringThe Windows operating system family.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
OPERATING_SYSTEM_ATTRIBUTE
- 
WINDOWSThe Windows operating system family.- See Also:
 
- 
LINUXThe Linux operating system family.- See Also:
 
- 
MACOSThe macOS operating system family.- See Also:
 
 
- 
- 
Constructor Details- 
OperatingSystemFamilypublic OperatingSystemFamily()
 
- 
- 
Method Details- 
getNameThe object's name.Must be constant for the life of the object. 
- 
isWindowspublic boolean isWindows()Is this the Windows operating system family?
- 
isLinuxpublic boolean isLinux()Is this the Linux operating system family?
- 
isMacOspublic boolean isMacOs()Is this the macOS operating system family?
 
-