Package org.apache.commons.vfs2.util
Class Os
java.lang.Object
org.apache.commons.vfs2.util.Os
Deprecated.
Class to help determining the OS.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final OsFamily[]
Deprecated.private static final OsFamily[]
Deprecated.private static final String
Deprecated.private static final OsFamily
Deprecated.static final OsFamily
Deprecated.All DOS based OSes.static final OsFamily
Deprecated.All Mac based OSes.static final OsFamily
Deprecated.Netware.static final OsFamily
Deprecated.OS/2.static final OsFamily
Deprecated.OSX.static final OsFamily
Deprecated.All UNIX based OSes.static final OsFamily
Deprecated.All Windows 9x based OSes.static final OsFamily
Deprecated.All Windows based OSes.static final OsFamily
Deprecated.All Windows NT based OSes.private static final String
Deprecated.private static final String
Deprecated.private static final String
Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Os()
Deprecated.Private constructor to block instantiation. -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
archMatches
(String arch) Deprecated.private static OsFamily[]
Deprecated.private static OsFamily
Deprecated.private static boolean
familyMatches
(OsFamily family) Deprecated.static OsFamily
Deprecated.Locates an OsFamily by name (case-insensitive).static boolean
Deprecated.Determines if the OS on which Ant is executing matches the given OS architecture.static boolean
Deprecated.Determines if the OS on which Ant is executing matches the given OS family.static boolean
Deprecated.Determines if the OS on which Ant is executing matches the given OS family.static boolean
Deprecated.Determines if the OS on which Ant is executing matches the given OS name.static boolean
Deprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.static boolean
Deprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.static boolean
Deprecated.Determines if the OS on which Ant is executing matches the given OS version.private static boolean
nameMatches
(String name) Deprecated.private static boolean
versionMatches
(String version) Deprecated.
-
Field Details
-
OS_FAMILY_WINDOWS
Deprecated.All Windows based OSes. -
OS_FAMILY_DOS
Deprecated.All DOS based OSes. -
OS_FAMILY_WINNT
Deprecated.All Windows NT based OSes. -
OS_FAMILY_WIN9X
Deprecated.All Windows 9x based OSes. -
OS_FAMILY_OS2
Deprecated.OS/2. -
OS_FAMILY_NETWARE
Deprecated.Netware. -
OS_FAMILY_UNIX
Deprecated.All UNIX based OSes. -
OS_FAMILY_MAC
Deprecated.All Mac based OSes. -
OS_FAMILY_OSX
Deprecated.OSX. -
OS_NAME
Deprecated. -
OS_ARCH
Deprecated. -
OS_VERSION
Deprecated. -
PATH_SEP
Deprecated. -
OS_FAMILY
Deprecated. -
OS_ALL_FAMILIES
Deprecated. -
ALL_FAMILIES
Deprecated.
-
-
Constructor Details
-
Os
private Os()Deprecated.Private constructor to block instantiation.
-
-
Method Details
-
isVersion
Deprecated.Determines if the OS on which Ant is executing matches the given OS version.- Parameters:
version
- The version to check.- Returns:
- true if the version matches.
-
isArch
Deprecated.Determines if the OS on which Ant is executing matches the given OS architecture.- Parameters:
arch
- The architecture to check.- Returns:
- true if the architecture mataches.
-
isFamily
Deprecated.Determines if the OS on which Ant is executing matches the given OS family.- Parameters:
family
- The family to check.- Returns:
- true if the family matches.
-
isFamily
Deprecated.Determines if the OS on which Ant is executing matches the given OS family.- Parameters:
family
- The family to check.- Returns:
- true if the family matches.
-
isName
Deprecated.Determines if the OS on which Ant is executing matches the given OS name.- Parameters:
name
- Description of Parameter- Returns:
- The Name value
- Since:
- 1.7
-
isOs
Deprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.- Parameters:
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version- Returns:
- The Os value
-
isOs
Deprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.- Parameters:
family
- The OS familyname
- The OS namearch
- The OS architectureversion
- The OS version- Returns:
- The Os value
-
getFamily
Deprecated.Locates an OsFamily by name (case-insensitive).- Parameters:
name
- The family name to lookup.- Returns:
- the OS family, or null if not found.
-
versionMatches
Deprecated. -
archMatches
Deprecated. -
nameMatches
Deprecated. -
familyMatches
Deprecated. -
determineAllFamilies
Deprecated. -
determineOsFamily
Deprecated.
-
SystemUtils
. Remove in 3.0.