public class Os extends Object
Constructor and Description |
---|
Os() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isArch(String arch)
Determines if the OS on which Ant is executing matches the
given OS architecture.
|
static boolean |
isFamily(String family)
Determines if the OS on which Ant is executing matches the
given OS family.
|
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.
|
public static boolean isFamily(String family)
family
- The OS family type desiredpublic static boolean isName(String name)
name
- The name.public static boolean isArch(String arch)
arch
- The arch.public static boolean isVersion(String version)
version
- The version.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