Package org.apache.maven.utils
Class Os
- java.lang.Object
-
- org.apache.maven.utils.Os
-
public class Os extends java.lang.ObjectOS support
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFAMILY_NTOS family that can be tested for.static booleanIS_WINDOWSBoolean indicating if the running OS is a Windows system.static java.lang.StringOS_ARCHThe OA architecture.static java.lang.StringOS_FAMILYOS Familystatic java.lang.StringOS_NAMEThe OS Name.static java.lang.StringOS_VERSIONThe OS version.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisFamily(java.lang.String family)Determines if the OS on which Maven is executing matches the given OS family.static booleanisFamily(java.lang.String family, java.lang.String actualOsName)Determines if the OS on which Maven is executing matches the given OS family derived from the given OS name
-
-
-
Field Detail
-
OS_NAME
public static final java.lang.String OS_NAME
The OS Name.
-
OS_ARCH
public static final java.lang.String OS_ARCH
The OA architecture.
-
OS_VERSION
public static final java.lang.String OS_VERSION
The OS version.
-
OS_FAMILY
public static final java.lang.String OS_FAMILY
OS Family
-
IS_WINDOWS
public static final boolean IS_WINDOWS
Boolean indicating if the running OS is a Windows system.
-
FAMILY_NT
public static final java.lang.String FAMILY_NT
OS family that can be tested for. "winnt"- See Also:
- Constant Field Values
-
-
Method Detail
-
isFamily
public static boolean isFamily(java.lang.String family)
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
public static boolean isFamily(java.lang.String family, java.lang.String actualOsName)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
-
-