| Modifier and Type | Field and Description |
|---|---|
| private String | arch
OS architecture |
| private static final String | DARWIN
OpenJDK is reported to call MacOS X "Darwin" |
| private String | family
OS family to look for |
| public static final String | FAMILY_9X
OS family that can be tested for. |
| public static final String | FAMILY_DOS
OS family that can be tested for. |
| public static final String | FAMILY_MAC
OS family that can be tested for. |
| public static final String | FAMILY_NETWARE
OS family that can be tested for. |
| public static final String | FAMILY_NT
OS family that can be tested for. |
| public static final String | FAMILY_OS2
OS family that can be tested for. |
| public static final String | FAMILY_OS400
OS family that can be tested for. |
| public static final String | FAMILY_TANDEM
OS family that can be tested for. |
| public static final String | FAMILY_UNIX
OS family that can be tested for. |
| public static final String | FAMILY_VMS
OS family that can be tested for. |
| public static final String | FAMILY_WINDOWS
OS family that can be tested for. |
| public static final String | FAMILY_ZOS
OS family that can be tested for. |
| private String | name
Name of OS |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private String | version
version of OS |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the os matches.Implements org. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public void | |
| public void | |
| public void | |
| public void |
| arch | back to summary |
|---|---|
| private String arch OS architecture | |
| DARWIN | back to summary |
|---|---|
| private static final String DARWIN OpenJDK is reported to call MacOS X "Darwin" | |
| family | back to summary |
|---|---|
| private String family OS family to look for | |
| FAMILY_9X | back to summary |
|---|---|
| public static final String FAMILY_9X OS family that can be tested for. win9x | |
| FAMILY_DOS | back to summary |
|---|---|
| public static final String FAMILY_DOS OS family that can be tested for. dos | |
| FAMILY_MAC | back to summary |
|---|---|
| public static final String FAMILY_MAC OS family that can be tested for. mac | |
| FAMILY_NETWARE | back to summary |
|---|---|
| public static final String FAMILY_NETWARE OS family that can be tested for. netware | |
| FAMILY_NT | back to summary |
|---|---|
| public static final String FAMILY_NT OS family that can be tested for. winnt | |
| FAMILY_OS2 | back to summary |
|---|---|
| public static final String FAMILY_OS2 OS family that can be tested for. os/2 | |
| FAMILY_OS400 | back to summary |
|---|---|
| public static final String FAMILY_OS400 OS family that can be tested for. os/400 | |
| FAMILY_TANDEM | back to summary |
|---|---|
| public static final String FAMILY_TANDEM OS family that can be tested for. tandem | |
| FAMILY_UNIX | back to summary |
|---|---|
| public static final String FAMILY_UNIX OS family that can be tested for. unix | |
| FAMILY_VMS | back to summary |
|---|---|
| public static final String FAMILY_VMS OS family that can be tested for. openvms | |
| FAMILY_WINDOWS | back to summary |
|---|---|
| public static final String FAMILY_WINDOWS OS family that can be tested for. windows | |
| FAMILY_ZOS | back to summary |
|---|---|
| public static final String FAMILY_ZOS OS family that can be tested for. z/os | |
| name | back to summary |
|---|---|
| private String name Name of OS | |
| OS_ARCH | back to summary |
|---|---|
| private static final String OS_ARCH | |
| OS_NAME | back to summary |
|---|---|
| private static final String OS_NAME | |
| OS_VERSION | back to summary |
|---|---|
| private static final String OS_VERSION | |
| PATH_SEP | back to summary |
|---|---|
| private static final String PATH_SEP | |
| version | back to summary |
|---|---|
| private String version version of OS | |
| Os | back to summary |
|---|---|
| public Os() Default constructor | |
| Os | back to summary |
|---|---|
| public Os(String family) Constructor that sets the family attribute
| |
| eval | back to summary |
|---|---|
| public boolean eval() throws BuildException Implements org. Determines if the OS on which Ant is executing matches the type of that set in setFamily.
| |
| isArch | back to summary |
|---|---|
| public static boolean isArch(String arch) Determines if the OS on which Ant is executing matches the given OS architecture.
| |
| isFamily | back to summary |
|---|---|
| public static boolean isFamily(String family) Determines if the OS on which Ant is executing matches the given OS family.
| |
| isName | back to summary |
|---|---|
| public static boolean isName(String name) Determines if the OS on which Ant is executing matches the given OS name.
| |
| isOs | back to summary |
|---|---|
| public 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 | |
| isVersion | back to summary |
|---|---|
| public static boolean isVersion(String version) Determines if the OS on which Ant is executing matches the given OS version.
| |
| setArch | back to summary |
|---|---|
| public void setArch(String arch) Sets the desired OS architecture
| |
| setFamily | back to summary |
|---|---|
| public void setFamily(String f) Sets the desired OS family type
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the desired OS name
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(String version) Sets the desired OS version
| |