Package org.apache.maven.impl.model
Class DefaultOsService
java.lang.Object
org.apache.maven.impl.model.DefaultOsService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarch()
Returns the OS architecture as reported by the system property "os.arch".family()
Returns the OS family name based on OS detection rules.boolean
Checks if the current operating system belongs to the Windows family.name()
Returns the OS full name as reported by the system property "os.name".version()
Returns the OS version as reported by the system property "os.version".
-
Constructor Details
-
DefaultOsService
public DefaultOsService()
-
-
Method Details
-
name
Description copied from interface:OsService
Returns the OS full name as reported by the system property "os.name". The value is converted to lowercase for consistency. -
arch
Description copied from interface:OsService
Returns the OS architecture as reported by the system property "os.arch". The value is converted to lowercase for consistency. -
version
Description copied from interface:OsService
Returns the OS version as reported by the system property "os.version". The value is converted to lowercase for consistency. -
family
Description copied from interface:OsService
Returns the OS family name based on OS detection rules. This categorizes the OS into one of the supported families (e.g., "windows", "unix", "mac"). -
isWindows
public boolean isWindows()Description copied from interface:OsService
Checks if the current operating system belongs to the Windows family. This includes all Windows variants (95, 98, ME, NT, 2000, XP, Vista, 7, 8, 10, 11).
-