|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.shared.utils.Os
public class Os
Condition that tests the OS type.
This class got copied over from Apache ANT.
Even the version from plexus-utils was
only an ANT fork!
The last time it got copied was on 2011-08-12
When merging changes please take care of the special OS_FAMILY handling in this version of Os.java!
Field Summary | |
---|---|
static String |
FAMILY_DOS
OS family that can be tested for. |
static String |
FAMILY_MAC
OS family that can be tested for. |
static String |
FAMILY_NETWARE
OS family that can be tested for. |
static String |
FAMILY_NT
OS family that can be tested for. |
static String |
FAMILY_OPENVMS
OS family that can be tested for. |
static String |
FAMILY_OS2
OS family that can be tested for. |
static String |
FAMILY_OS400
OS family that can be tested for. |
static String |
FAMILY_TANDEM
OS family that can be tested for. |
static String |
FAMILY_UNIX
OS family that can be tested for. |
static String |
FAMILY_WIN9X
OS family that can be tested for. |
static String |
FAMILY_WINDOWS
OS family that can be tested for. |
static String |
FAMILY_ZOS
OS family that can be tested for. |
static String |
LINE_SEP
system line separator , e.g. |
static String |
OS_ARCH
|
static String |
OS_FAMILY
|
static String |
OS_NAME
|
static String |
OS_VERSION
|
static String |
PATH_SEP
|
Constructor Summary | |
---|---|
Os()
Default constructor |
|
Os(String family)
Constructor that sets the family attribute |
Method Summary | |
---|---|
static Set<String> |
getValidFamilies()
The set of valid families. |
static boolean |
isArch(String arch)
Determines if the OS on which Ant is executing matches the given OS architecture. |
static boolean |
isFamily(String family)
Determines if the OS on which Ant is executing matches the given OS family. |
static boolean |
isName(String name)
Determines if the OS on which Ant is executing matches the given OS name. |
static boolean |
isValidFamily(String family)
Test if the given family String represents a valid Family |
static boolean |
isVersion(String version)
Determines if the OS on which Ant is executing matches the given OS version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OS_NAME
public static final String OS_ARCH
public static final String OS_VERSION
public static final String PATH_SEP
public static final String LINE_SEP
public static final String OS_FAMILY
public static final String FAMILY_WINDOWS
public static final String FAMILY_WIN9X
public static final String FAMILY_NT
public static final String FAMILY_OS2
public static final String FAMILY_NETWARE
public static final String FAMILY_DOS
public static final String FAMILY_MAC
public static final String FAMILY_TANDEM
public static final String FAMILY_UNIX
public static final String FAMILY_OPENVMS
public static final String FAMILY_ZOS
public static final String FAMILY_OS400
Constructor Detail |
---|
public Os()
public Os(String family)
family
- a String valueMethod Detail |
---|
public static Set<String> getValidFamilies()
public static boolean isFamily(String family)
family
- the family to check for
public static boolean isName(String name)
name
- the OS name to check for
public static boolean isArch(String arch)
arch
- the OS architecture to check for
public static boolean isVersion(String version)
version
- the OS version to check for
public static boolean isValidFamily(String family)
family
- the os family
true
if 'family' represents a valid OS-Family, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |