public final class OS
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isArch(java.lang.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(java.lang.String name)
Determines if the OS on which Ant is executing matches the given OS name.
|
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
|
static boolean |
isVersion(java.lang.String version)
Determines if the OS on which Ant is executing matches the given OS
version.
|
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(java.lang.String name)
name
- the OS name to check forpublic static boolean isArch(java.lang.String arch)
arch
- the OS architecture to check forpublic static boolean isVersion(java.lang.String version)
version
- the OS version to check forpublic static boolean isOs(java.lang.String family, java.lang.String name, java.lang.String arch, java.lang.String version)
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"