Class Os
java.lang.Object
org.apache.commons.vfs2.util.Os
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OsFamilyDeprecated.All DOS based OSes.static final OsFamilyDeprecated.All Mac based OSes.static final OsFamilyDeprecated.Netware.static final OsFamilyDeprecated.OS/2.static final OsFamilyDeprecated.OSX.static final OsFamilyDeprecated.All Unix based OSes.static final OsFamilyDeprecated.All Windows 9x based OSes.static final OsFamilyDeprecated.All Windows based OSes.static final OsFamilyDeprecated.All Windows NT based OSes. -
Method Summary
Modifier and TypeMethodDescriptionstatic OsFamilyDeprecated.Locates an OsFamily by name (case-insensitive).static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS architecture.static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS family.static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS family.static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS name.static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS version.
-
Field Details
-
OS_FAMILY_WINDOWS
-
OS_FAMILY_DOS
-
OS_FAMILY_WINNT
-
OS_FAMILY_WIN9X
-
OS_FAMILY_OS2
-
OS_FAMILY_NETWARE
-
OS_FAMILY_UNIX
-
OS_FAMILY_MAC
-
OS_FAMILY_OSX
-
-
Method Details
-
getFamily
-
isArch
-
isFamily
-
isFamily
-
isName
-
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
-
isVersion
-
SystemUtils. Remove in 3.0.