|
Os (Apache Ant API)
org.apache.tools.ant.taskdefs.condition
|
Constructor Summary | |
Os()
|
|
Os(java.lang.String family)
|
Method Summary | |
boolean |
eval()
Determines if the OS on which Ant is executing matches the type of that set in setFamily. |
static boolean |
isArch(java.lang.String arch)
Determines if the OS on which Ant is executing matches the given OS architecture. |
static boolean |
isFamily(java.lang.String family)
Determines if the OS on which Ant is executing matches the given OS family. |
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. |
void |
setArch(java.lang.String arch)
Sets the desired OS architecture |
void |
setFamily(java.lang.String f)
Sets the desired OS family type |
void |
setName(java.lang.String name)
Sets the desired OS name |
void |
setVersion(java.lang.String version)
Sets the desired OS version |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Os()
public Os(java.lang.String family)
Method Detail |
public void setFamily(java.lang.String f)
f
- The OS family type desiredpublic void setName(java.lang.String name)
name
- The OS namepublic void setArch(java.lang.String arch)
arch
- The OS architecturepublic void setVersion(java.lang.String version)
version
- The OS versionpublic boolean eval() throws BuildException
BuildException
setFamily(String)
public static boolean isFamily(java.lang.String family)
public static boolean isName(java.lang.String name)
public static boolean isArch(java.lang.String arch)
public static boolean isVersion(java.lang.String version)
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |