Package org.apache.commons.exec
Class OS
java.lang.Object
org.apache.commons.exec.OS
Condition that tests the OS type.
- Version:
- $Id: OS.java 1556869 2014-01-09 16:51:11Z britter $
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Determines if the OS on which Ant is executing matches the given OS architecture.static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
Determines if the OS on which Ant is executing matches the given OS name.static boolean
Determines if the OS on which Ant is executing matches the given OS family, name, architecture and versionstatic boolean
Determines if the OS on which Ant is executing matches the given OS version.
-
Method Details
-
isFamilyDOS
-
isFamilyMac
-
isFamilyNetware
-
isFamilyOS2
-
isFamilyTandem
-
isFamilyUnix
-
isFamilyWindows
-
isFamilyWin9x
-
isFamilyZOS
-
isFamilyOS400
-
isFamilyOpenVms
-
isName
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
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
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
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
-