| java.lang.Object org.apache.commons.vfs.util.Os
Method Summary | |
public static OsFamily | getFamily(String name) Locates an OsFamily by name (case-insensitive). | public static boolean | isArch(String arch) Determines if the OS on which Ant is executing matches the given OS
architecture. | public static boolean | isFamily(String family) Determines if the OS on which Ant is executing matches the given OS
family. | public static boolean | isFamily(OsFamily family) Determines if the OS on which Ant is executing matches the given OS
family. | public static boolean | isName(String name) Determines if the OS on which Ant is executing matches the given OS name. | 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. | public static boolean | isOs(OsFamily family, String name, String arch, String version) | public static boolean | isVersion(String version) Determines if the OS on which Ant is executing matches the given OS
version. |
OS_FAMILY_DOS | final public static OsFamily OS_FAMILY_DOS(Code) | | All DOS based OSes.
|
OS_FAMILY_MAC | final public static OsFamily OS_FAMILY_MAC(Code) | | All Mac based OSes.
|
OS_FAMILY_NETWARE | final public static OsFamily OS_FAMILY_NETWARE(Code) | | Netware
|
OS_FAMILY_UNIX | final public static OsFamily OS_FAMILY_UNIX(Code) | | All UNIX based OSes.
|
OS_FAMILY_WIN9X | final public static OsFamily OS_FAMILY_WIN9X(Code) | | All Windows 9x based OSes.
|
OS_FAMILY_WINDOWS | final public static OsFamily OS_FAMILY_WINDOWS(Code) | | All Windows based OSes.
|
OS_FAMILY_WINNT | final public static OsFamily OS_FAMILY_WINNT(Code) | | All Windows NT based OSes.
|
getFamily | public static OsFamily getFamily(String name)(Code) | | Locates an OsFamily by name (case-insensitive).
the OS family, or null if not found. |
isArch | public static boolean isArch(String arch)(Code) | | Determines if the OS on which Ant is executing matches the given OS
architecture.
|
isFamily | public static boolean isFamily(String family)(Code) | | Determines if the OS on which Ant is executing matches the given OS
family.
|
isFamily | public static boolean isFamily(OsFamily family)(Code) | | Determines if the OS on which Ant is executing matches the given OS
family.
|
isName | public static boolean isName(String name)(Code) | | Determines if the OS on which Ant is executing matches the given OS name.
Parameters: name - Description of Parameter The Name value since: 1.7 |
isOs | public static boolean isOs(String family, String name, String arch, String version)(Code) | | Determines if the OS on which Ant is executing matches the given OS
family, name, architecture and version.
Parameters: family - The OS family Parameters: name - The OS name Parameters: arch - The OS architecture Parameters: version - The OS version The Os value |
isOs | public static boolean isOs(OsFamily family, String name, String arch, String version)(Code) | | Determines if the OS on which Ant is executing matches the given OS
family, name, architecture and version
Parameters: family - The OS family Parameters: name - The OS name Parameters: arch - The OS architecture Parameters: version - The OS version The Os value |
isVersion | public static boolean isVersion(String version)(Code) | | Determines if the OS on which Ant is executing matches the given OS
version.
|
|
|