Package org.apache.maven.utils
Class Os
java.lang.Object
org.apache.maven.utils.Os
OS support
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
OpenJDK is reported to call MacOS X "Darwin"private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static final String
OS family that can be tested for.private static 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.private static final String
The path separator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
Helper method to determine the current OS family.static 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_WINDOWS
OS family that can be tested for. "windows"- See Also:
-
FAMILY_WIN9X
OS family that can be tested for. "win9x"- See Also:
-
FAMILY_NT
OS family that can be tested for. "winnt"- See Also:
-
FAMILY_OS2
OS family that can be tested for. "os/2"- See Also:
-
FAMILY_NETWARE
OS family that can be tested for. "netware"- See Also:
-
FAMILY_DOS
OS family that can be tested for. "dos"- See Also:
-
FAMILY_MAC
OS family that can be tested for. "mac"- See Also:
-
FAMILY_TANDEM
OS family that can be tested for. "tandem"- See Also:
-
FAMILY_UNIX
OS family that can be tested for. "unix"- See Also:
-
FAMILY_OPENVMS
OS family that can be tested for. "openvms"- See Also:
-
FAMILY_ZOS
OS family that can be tested for. "z/os"- See Also:
-
FAMILY_OS390
OS family that can be tested for. "os/390"- See Also:
-
FAMILY_OS400
OS family that can be tested for. "os/400"- See Also:
-
DARWIN
OpenJDK is reported to call MacOS X "Darwin"- See Also:
-
PATH_SEP
The path separator.
-
-
Constructor Details
-
Os
private Os()
-
-
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
-
getOsFamily
Helper method to determine the current OS family.- Returns:
- name of current OS family.
-