public class Os
extends Object
OS support
-
Field Summary 
Fields
OS family that can be tested for.
static final boolean
Boolean indicating if the running OS is a Windows system.
-
Method Summary 
static boolean
Determines if the OS on which Maven is executing matches the
given OS family.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details 
-
OS_NAME 
public static final String OS_NAME
The OS Name.
-
OS_ARCH 
public static final String OS_ARCH
The OA architecture.
-
OS_VERSION 
public static final String OS_VERSION
The OS version.
-
OS_FAMILY 
public static final 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 String FAMILY_NT
OS family that can be tested for. "winnt"
- See Also:
-
-
Method Details 
-
isFamily 
public static boolean isFamily(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