Package org.apache.maven.shared.utils
Class Os
java.lang.Object
org.apache.maven.shared.utils.Os
Deprecated.
Condition that tests the OS type.
- Author:
- Stefan Bodewig, Magesh Umasankar, Brian Fox, Mark Struberg
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.OS family that can be tested for.static final StringDeprecated.System line separator , e.g.static final StringDeprecated.The OA architecture.static final StringDeprecated.OS Family.static final StringDeprecated.The OS Name.static final StringDeprecated.The OS version.static final StringDeprecated.The path separator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The set of valid families.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 name.static booleanisValidFamily(String family) Deprecated.Test if the given family String represents a valid Family.static booleanDeprecated.Determines if the OS on which Ant is executing matches the given OS version.
-
Field Details
-
OS_NAME
Deprecated.The OS Name. -
OS_ARCH
Deprecated.The OA architecture. -
OS_VERSION
Deprecated.The OS version. -
PATH_SEP
Deprecated.The path separator. -
LINE_SEP
Deprecated.System line separator , e.g. "\n" on unixoid systems and "\r\n" on Windows. -
OS_FAMILY
Deprecated.OS Family. -
FAMILY_WINDOWS
Deprecated.OS family that can be tested for. "windows"- See Also:
-
FAMILY_WIN9X
Deprecated.OS family that can be tested for. "win9x"- See Also:
-
FAMILY_NT
Deprecated.OS family that can be tested for. "winnt"- See Also:
-
FAMILY_OS2
Deprecated.OS family that can be tested for. "os/2"- See Also:
-
FAMILY_NETWARE
Deprecated.OS family that can be tested for. "netware"- See Also:
-
FAMILY_DOS
Deprecated.OS family that can be tested for. "dos"- See Also:
-
FAMILY_MAC
Deprecated.OS family that can be tested for. "mac"- See Also:
-
FAMILY_TANDEM
Deprecated.OS family that can be tested for. "tandem"- See Also:
-
FAMILY_UNIX
Deprecated.OS family that can be tested for. "unix"- See Also:
-
FAMILY_OPENVMS
Deprecated.OS family that can be tested for. "openvms"- See Also:
-
FAMILY_ZOS
Deprecated.OS family that can be tested for. "z/os"- See Also:
-
FAMILY_OS400
Deprecated.OS family that can be tested for. "os/400"- See Also:
-
-
Constructor Details
-
Os
public Os()Deprecated.Default constructor. -
Os
Deprecated.Constructor that sets the family attribute.- Parameters:
family- a String value
-
-
Method Details
-
getValidFamilies
Deprecated.The set of valid families. This methods initializes the set until VALID_FAMILIES constant is set.- Returns:
- the set of families
-
isFamily
Deprecated.Determines if the OS on which Ant is executing matches the given OS family.- Parameters:
family- the family to check for- Returns:
- true if the OS matches
-
isName
Deprecated.Determines if the OS on which Ant is executing matches the given OS name.- Parameters:
name- the OS name to check for- Returns:
- true if the OS matches
-
isArch
Deprecated.Determines if the OS on which Ant is executing matches the given OS architecture.- Parameters:
arch- the OS architecture to check for- Returns:
- true if the OS matches
-
isVersion
Deprecated.Determines if the OS on which Ant is executing matches the given OS version.- Parameters:
version- the OS version to check for- Returns:
- true if the OS matches
-
isValidFamily
Deprecated.Test if the given family String represents a valid Family.- Parameters:
family- the os family- Returns:
trueif 'family' represents a valid OS-Family,falseotherwise
-
org.apache.commons.lang3.SystemUtilsinstead