Package org.apache.maven.utils
Class Os
java.lang.Object
org.apache.maven.utils.Os
Deprecated.
OS support
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.OS family that can be tested for.static final boolean
Deprecated.Boolean indicating if the running OS is a Windows system.static final String
Deprecated.The OA architecture.static final String
Deprecated.OS Familystatic final String
Deprecated.The OS Name.static final String
Deprecated.The OS version. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Deprecated.Determines if the OS on which Maven is executing matches the given OS family.static boolean
Deprecated.Determines if the OS on which Maven is executing matches the given OS family derived from the given OS name
-
Field Details
-
OS_NAME
Deprecated.The OS Name. -
OS_ARCH
Deprecated.The OA architecture. -
OS_VERSION
Deprecated.The OS version. -
OS_FAMILY
Deprecated.OS Family -
IS_WINDOWS
public static final boolean IS_WINDOWSDeprecated.Boolean indicating if the running OS is a Windows system. -
FAMILY_NT
Deprecated.OS family that can be tested for. "winnt"- See Also:
-
-
Method Details
-
isFamily
Deprecated.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
Deprecated.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
-
ModelBuilder
instead