Package org.apache.commons.exec
Class OS
- java.lang.Object
 - 
- org.apache.commons.exec.OS
 
 
- 
public final class OS extends java.lang.ObjectCondition that tests the OS type. 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisArch(java.lang.String arch)Determines if the OS on which Ant is executing matches the given OS architecture.static booleanisFamilyDOS()static booleanisFamilyMac()static booleanisFamilyNetware()static booleanisFamilyOpenVms()static booleanisFamilyOS2()static booleanisFamilyOS400()static booleanisFamilyTandem()static booleanisFamilyUnix()static booleanisFamilyWin9x()static booleanisFamilyWindows()static booleanisFamilyZOS()static booleanisName(java.lang.String name)Determines if the OS on which Ant is executing matches the given OS name.static booleanisOs(java.lang.String family, java.lang.String name, java.lang.String arch, java.lang.String version)Determines if the OS on which Ant is executing matches the given OS family, name, architecture and versionstatic booleanisVersion(java.lang.String version)Determines if the OS on which Ant is executing matches the given OS version. 
 - 
 
- 
- 
Method Detail
- 
isFamilyDOS
public static boolean isFamilyDOS()
 
- 
isFamilyMac
public static boolean isFamilyMac()
 
- 
isFamilyNetware
public static boolean isFamilyNetware()
 
- 
isFamilyOS2
public static boolean isFamilyOS2()
 
- 
isFamilyTandem
public static boolean isFamilyTandem()
 
- 
isFamilyUnix
public static boolean isFamilyUnix()
 
- 
isFamilyWindows
public static boolean isFamilyWindows()
 
- 
isFamilyWin9x
public static boolean isFamilyWin9x()
 
- 
isFamilyZOS
public static boolean isFamilyZOS()
 
- 
isFamilyOS400
public static boolean isFamilyOS400()
 
- 
isFamilyOpenVms
public static boolean isFamilyOpenVms()
 
- 
isName
public static boolean isName(java.lang.String name)
Determines if the OS on which Ant is executing matches the given OS name.- Parameters:
 name- the OS name to check for- Returns:
 - true if the OS matches
 
 
- 
isArch
public static boolean isArch(java.lang.String arch)
Determines if the OS on which Ant is executing matches the given OS architecture.- Parameters:
 arch- the OS architecture to check for- Returns:
 - true if the OS matches
 
 
- 
isVersion
public static boolean isVersion(java.lang.String version)
Determines if the OS on which Ant is executing matches the given OS version.- Parameters:
 version- the OS version to check for- Returns:
 - true if the OS matches
 
 
- 
isOs
public static boolean isOs(java.lang.String family, java.lang.String name, java.lang.String arch, java.lang.String version)Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version- Parameters:
 family- The OS familyname- The OS namearch- The OS architectureversion- The OS version- Returns:
 - true if the OS matches
 
 
 - 
 
 -