Package org.apache.maven.utils
Class Os
java.lang.Object
org.apache.maven.utils.Os
OS support
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringOS family that can be tested for.static final booleanBoolean indicating if the running OS is a Windows system.static final StringThe OA architecture.static final StringOS Familystatic final StringThe OS Name.static final StringThe OS version.
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanDetermines if the OS on which Maven is executing matches the given OS family.static booleanDetermines if the OS on which Maven is executing matches the given OS family derived from the given OS name
- 
Field Details- 
OS_NAMEThe OS Name.
- 
OS_ARCHThe OA architecture.
- 
OS_VERSIONThe OS version.
- 
OS_FAMILYOS Family
- 
IS_WINDOWSpublic static final boolean IS_WINDOWSBoolean indicating if the running OS is a Windows system.
- 
FAMILY_NTOS family that can be tested for. "winnt"- See Also:
 
 
- 
- 
Method Details- 
isFamilyDetermines if the OS on which Maven is executing matches the given OS family.- Parameters:
- family- the family to check for
- Returns:
- true if the OS matches
 
- 
isFamilyDetermines if the OS on which Maven is executing matches the given OS family derived from the given OS name- Parameters:
- family- the family to check for
- actualOsName- the OS name to check against
- Returns:
- true if the OS matches
 
 
-