|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.util.Os
Class to help determining the OS.
Field Summary | |
static OsFamily |
OS_FAMILY_DOS
All DOS based OSes. |
static OsFamily |
OS_FAMILY_MAC
All Mac based OSes. |
static OsFamily |
OS_FAMILY_NETWARE
Netware |
static OsFamily |
OS_FAMILY_OS2
OS/2 |
static OsFamily |
OS_FAMILY_OSX
OSX |
static OsFamily |
OS_FAMILY_UNIX
All UNIX based OSes. |
static OsFamily |
OS_FAMILY_WIN9X
All Windows 9x based OSes. |
static OsFamily |
OS_FAMILY_WINDOWS
All Windows based OSes. |
static OsFamily |
OS_FAMILY_WINNT
All Windows NT based OSes. |
Method Summary | |
static OsFamily |
getFamily(String name)
Locates an OsFamily by name (case-insensitive). |
static boolean |
isArch(String arch)
Determines if the OS on which Ant is executing matches the given OS architecture. |
static boolean |
isFamily(OsFamily family)
Determines if the OS on which Ant is executing matches the given OS family. |
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 |
isOs(OsFamily family,
String name,
String arch,
String version)
Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version |
static boolean |
isOs(String family,
String name,
String arch,
String version)
Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version. |
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 OsFamily OS_FAMILY_WINDOWS
public static final OsFamily OS_FAMILY_DOS
public static final OsFamily OS_FAMILY_WINNT
public static final OsFamily OS_FAMILY_WIN9X
public static final OsFamily OS_FAMILY_OS2
public static final OsFamily OS_FAMILY_NETWARE
public static final OsFamily OS_FAMILY_UNIX
public static final OsFamily OS_FAMILY_MAC
public static final OsFamily OS_FAMILY_OSX
Method Detail |
public static boolean isVersion(String version)
public static boolean isArch(String arch)
public static boolean isFamily(String family)
public static boolean isFamily(OsFamily family)
public static boolean isName(String name)
name
- Description of Parameter
public static boolean isOs(String family, String name, String arch, String version)
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version
public static boolean isOs(OsFamily family, String name, String arch, String version)
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version
public static OsFamily getFamily(String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |