java.lang.Object
com.baidu.bjf.remoting.protobuf.utils.OS
Condition that tests the OS type.
-
方法概要
修饰符和类型方法说明static booleanDetermines if the OS on which Ant is executing matches the given OS architecture.static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanDetermines if the OS on which Ant is executing matches the given OS name.static booleanDetermines if the OS on which Ant is executing matches the given OS family, name, architecture and versionstatic booleanDetermines if the OS on which Ant is executing matches the given OS version.
-
方法详细资料
-
isFamilyDOS
public static boolean isFamilyDOS() -
isFamilyMac
public static boolean isFamilyMac() -
isFamilyNetware
public static boolean isFamilyNetware() -
isFamilyOS2
public static boolean isFamilyOS2() -
isFamilyTandem
public static boolean isFamilyTandem() -
isFamilyUnix
public static boolean isFamilyUnix() -
isFamilyWindows
public static boolean isFamilyWindows() -
isFamilyWin9x
public static boolean isFamilyWin9x() -
isFamilyZOS
public static boolean isFamilyZOS() -
isFamilyOS400
public static boolean isFamilyOS400() -
isFamilyOpenVms
public static boolean isFamilyOpenVms() -
isName
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
-
isArch
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
-
isVersion
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
-
isOs
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
-