|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.exec.OS
public final class OS
Condition that tests the OS type.
Method Summary | |
---|---|
static boolean |
isArch(String arch)
Determines if the OS on which Ant is executing matches the given OS architecture. |
static boolean |
isFamilyDOS()
|
static boolean |
isFamilyMac()
|
static boolean |
isFamilyNetware()
|
static boolean |
isFamilyOpenVms()
|
static boolean |
isFamilyOS2()
|
static boolean |
isFamilyOS400()
|
static boolean |
isFamilyTandem()
|
static boolean |
isFamilyUnix()
|
static boolean |
isFamilyWin9x()
|
static boolean |
isFamilyWindows()
|
static boolean |
isFamilyZOS()
|
static boolean |
isName(String name)
Determines if the OS on which Ant is executing matches the given OS name. |
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 |
Method Detail |
---|
public static boolean isFamilyDOS()
public static boolean isFamilyMac()
public static boolean isFamilyNetware()
public static boolean isFamilyOS2()
public static boolean isFamilyTandem()
public static boolean isFamilyUnix()
public static boolean isFamilyWindows()
public static boolean isFamilyWin9x()
public static boolean isFamilyZOS()
public static boolean isFamilyOS400()
public static boolean isFamilyOpenVms()
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 isOs(String family, String name, String arch, String version)
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |