SystemUtils
. Remove in 3.0.@Deprecated public final class Os extends Object
Modifier and Type | Field and Description |
---|---|
static OsFamily |
OS_FAMILY_DOS
Deprecated.
All DOS based OSes.
|
static OsFamily |
OS_FAMILY_MAC
Deprecated.
All Mac based OSes.
|
static OsFamily |
OS_FAMILY_NETWARE
Deprecated.
Netware.
|
static OsFamily |
OS_FAMILY_OS2
Deprecated.
OS/2.
|
static OsFamily |
OS_FAMILY_OSX
Deprecated.
OSX.
|
static OsFamily |
OS_FAMILY_UNIX
Deprecated.
All UNIX based OSes.
|
static OsFamily |
OS_FAMILY_WIN9X
Deprecated.
All Windows 9x based OSes.
|
static OsFamily |
OS_FAMILY_WINDOWS
Deprecated.
All Windows based OSes.
|
static OsFamily |
OS_FAMILY_WINNT
Deprecated.
All Windows NT based OSes.
|
Modifier and Type | Method and Description |
---|---|
static OsFamily |
getFamily(String name)
Deprecated.
Locates an OsFamily by name (case-insensitive).
|
static boolean |
isArch(String arch)
Deprecated.
Determines if the OS on which Ant is executing matches the given OS architecture.
|
static boolean |
isFamily(OsFamily family)
Deprecated.
Determines if the OS on which Ant is executing matches the given OS family.
|
static boolean |
isFamily(String family)
Deprecated.
Determines if the OS on which Ant is executing matches the given OS family.
|
static boolean |
isName(String name)
Deprecated.
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)
Deprecated.
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)
Deprecated.
Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.
|
static boolean |
isVersion(String version)
Deprecated.
Determines if the OS on which Ant is executing matches the given OS version.
|
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
public static boolean isVersion(String version)
version
- The version to check.public static boolean isArch(String arch)
arch
- The architecture to check.public static boolean isFamily(String family)
family
- The family to check.public static boolean isFamily(OsFamily family)
family
- The family to check.public static boolean isName(String name)
name
- Description of Parameterpublic static boolean isOs(String family, String name, String arch, String version)
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS versionpublic static boolean isOs(OsFamily family, String name, String arch, String version)
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS versionCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.