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