Package org.apache.commons.vfs2.util
Class Os
java.lang.Object
org.apache.commons.vfs2.util.Os
Deprecated.
Class to help to determine the OS.
- 
Field SummaryFieldsModifier 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 SummaryModifier 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_WINDOWSDeprecated.All Windows based OSes.
- 
OS_FAMILY_DOSDeprecated.All DOS based OSes.
- 
OS_FAMILY_WINNTDeprecated.All Windows NT based OSes.
- 
OS_FAMILY_WIN9XDeprecated.All Windows 9x based OSes.
- 
OS_FAMILY_OS2Deprecated.OS/2.
- 
OS_FAMILY_NETWAREDeprecated.Netware.
- 
OS_FAMILY_UNIXDeprecated.All Unix based OSes.
- 
OS_FAMILY_MACDeprecated.All Mac based OSes.
- 
OS_FAMILY_OSXDeprecated.OSX.
 
- 
- 
Method Details- 
getFamilyDeprecated.Locates an OsFamily by name (case-insensitive).- Parameters:
- name- The family name to lookup.
- Returns:
- the OS family, or null if not found.
 
- 
isArchDeprecated.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 matches.
 
- 
isFamilyDeprecated.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.
 
- 
isFamilyDeprecated.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.
 
- 
isNameDeprecated.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
 
- 
isOsDeprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.- Parameters:
- family- The OS family
- name- The OS name
- arch- The OS architecture
- version- The OS version
- Returns:
- The Os value
 
- 
isOsDeprecated.Determines if the OS on which Ant is executing matches the given OS family, name, architecture and version.- Parameters:
- family- The OS family
- name- The OS name
- arch- The OS architecture
- version- The OS version
- Returns:
- The Os value
 
- 
isVersionDeprecated.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.
 
 
- 
SystemUtils. Remove in 3.0.