Class Os
java.lang.Object
org.apache.maven.internal.impl.model.profile.Os
OS support
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
OS family that can be tested for.static final boolean
Boolean indicating if the running OS is a Windows system.static final String
The OA architecture.static final String
OS Familystatic final String
The OS Name.static final String
The OS version. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Determines if the OS on which Maven is executing matches the given OS family.static boolean
Determines if the OS on which Maven is executing matches the given OS family derived from the given OS name
-
Field Details
-
OS_NAME
The OS Name. -
OS_ARCH
The OA architecture. -
OS_VERSION
The OS version. -
OS_FAMILY
OS Family -
IS_WINDOWS
public static final boolean IS_WINDOWSBoolean indicating if the running OS is a Windows system. -
FAMILY_NT
OS family that can be tested for. "winnt"- See Also:
-
-
Method Details
-
isFamily
Determines if the OS on which Maven is executing matches the given OS family.- Parameters:
family
- the family to check for- Returns:
- true if the OS matches
-
isFamily
Determines if the OS on which Maven is executing matches the given OS family derived from the given OS name- Parameters:
family
- the family to check foractualOsName
- the OS name to check against- Returns:
- true if the OS matches
-