クラス Os
- java.lang.Object
-
- com.kazurayam.ant.taskdefs.condition.Os
-
public class Os extends java.lang.Object
Condition that tests the OS type.- 導入されたバージョン:
- Ant 1.4
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static java.lang.String
FAMILY_9X
OS family that can be tested for.static java.lang.String
FAMILY_DOS
OS family that can be tested for.static java.lang.String
FAMILY_MAC
OS family that can be tested for.static java.lang.String
FAMILY_NETWARE
OS family that can be tested for.static java.lang.String
FAMILY_NT
OS family that can be tested for.static java.lang.String
FAMILY_OS2
OS family that can be tested for.static java.lang.String
FAMILY_OS400
OS family that can be tested for.static java.lang.String
FAMILY_TANDEM
OS family that can be tested for.static java.lang.String
FAMILY_UNIX
OS family that can be tested for.static java.lang.String
FAMILY_VMS
OS family that can be tested for.static java.lang.String
FAMILY_WINDOWS
OS family that can be tested for.static java.lang.String
FAMILY_ZOS
OS family that can be tested for.
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 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 versionstatic 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 architecturevoid
setFamily(java.lang.String f)
Sets the desired OS family typevoid
setName(java.lang.String name)
Sets the desired OS namevoid
setVersion(java.lang.String version)
Sets the desired OS version
-
-
-
フィールドの詳細
-
FAMILY_WINDOWS
public static final java.lang.String FAMILY_WINDOWS
OS family that can be tested for. "windows"- 関連項目:
- 定数フィールド値
-
FAMILY_9X
public static final java.lang.String FAMILY_9X
OS family that can be tested for. "win9x"- 関連項目:
- 定数フィールド値
-
FAMILY_NT
public static final java.lang.String FAMILY_NT
OS family that can be tested for. "winnt"- 関連項目:
- 定数フィールド値
-
FAMILY_OS2
public static final java.lang.String FAMILY_OS2
OS family that can be tested for. "os/2"- 関連項目:
- 定数フィールド値
-
FAMILY_NETWARE
public static final java.lang.String FAMILY_NETWARE
OS family that can be tested for. "netware"- 関連項目:
- 定数フィールド値
-
FAMILY_DOS
public static final java.lang.String FAMILY_DOS
OS family that can be tested for. "dos"- 関連項目:
- 定数フィールド値
-
FAMILY_MAC
public static final java.lang.String FAMILY_MAC
OS family that can be tested for. "mac"- 関連項目:
- 定数フィールド値
-
FAMILY_TANDEM
public static final java.lang.String FAMILY_TANDEM
OS family that can be tested for. "tandem"- 関連項目:
- 定数フィールド値
-
FAMILY_UNIX
public static final java.lang.String FAMILY_UNIX
OS family that can be tested for. "unix"- 関連項目:
- 定数フィールド値
-
FAMILY_VMS
public static final java.lang.String FAMILY_VMS
OS family that can be tested for. "openvms"- 関連項目:
- 定数フィールド値
-
FAMILY_ZOS
public static final java.lang.String FAMILY_ZOS
OS family that can be tested for. "z/os"- 関連項目:
- 定数フィールド値
-
FAMILY_OS400
public static final java.lang.String FAMILY_OS400
OS family that can be tested for. "os/400"- 関連項目:
- 定数フィールド値
-
-
メソッドの詳細
-
setFamily
public void setFamily(java.lang.String f)
Sets the desired OS family type- パラメータ:
f
- The OS family type desiredPossible values:
- dos
- mac
- netware
- os/2
- tandem
- unix
- windows
- win9x
- z/os
- os/400
-
setName
public void setName(java.lang.String name)
Sets the desired OS name- パラメータ:
name
- The OS name
-
setArch
public void setArch(java.lang.String arch)
Sets the desired OS architecture- パラメータ:
arch
- The OS architecture
-
setVersion
public void setVersion(java.lang.String version)
Sets the desired OS version- パラメータ:
version
- The OS version
-
eval
public boolean eval() throws BuildException
Determines if the OS on which Ant is executing matches the type of that set in setFamily.- 戻り値:
- true if the os matches.
- 例外:
BuildException
- if there is an error.- 関連項目:
setFamily(String)
-
isFamily
public static boolean isFamily(java.lang.String family)
Determines if the OS on which Ant is executing matches the given OS family.- パラメータ:
family
- the family to check for- 戻り値:
- true if the OS matches
- 導入されたバージョン:
- 1.5
-
isName
public static boolean isName(java.lang.String name)
Determines if the OS on which Ant is executing matches the given OS name.- パラメータ:
name
- the OS name to check for- 戻り値:
- true if the OS matches
- 導入されたバージョン:
- 1.7
-
isArch
public static boolean isArch(java.lang.String arch)
Determines if the OS on which Ant is executing matches the given OS architecture.- パラメータ:
arch
- the OS architecture to check for- 戻り値:
- true if the OS matches
- 導入されたバージョン:
- 1.7
-
isVersion
public static boolean isVersion(java.lang.String version)
Determines if the OS on which Ant is executing matches the given OS version.- パラメータ:
version
- the OS version to check for- 戻り値:
- true if the OS matches
- 導入されたバージョン:
- 1.7
-
isOs
public 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- パラメータ:
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version- 戻り値:
- true if the OS matches
- 導入されたバージョン:
- 1.7
-
-