Used to determine the current operating system.
| Type | Name and description |
|---|---|
java.lang.Object |
osClassifier |
| Type | Name and description |
|---|---|
static Platform |
current()Returns the current operating system we are running on. |
static Platform |
fromOsName(java.lang.String name)Get the matching Platform instance for the given name. |
java.lang.String |
getOsArch()Returns the current platform architecture. |
java.lang.String |
getOsFamily()The OS family for the current platform. |
static boolean |
is64bit()Is this platform a 64-bit platform? |
static boolean |
isMacOs()Is current plaform MacOs? |
static boolean |
isUnix()Is current platform Unix? |
static boolean |
isWindows()Is current platform Windows? |
| Methods inherited from class | Name |
|---|---|
class java.lang.Enum |
java.lang.Enum#name(), java.lang.Enum#equals(java.lang.Object), java.lang.Enum#toString(), java.lang.Enum#hashCode(), java.lang.Enum#compareTo(java.lang.Object), java.lang.Enum#compareTo(java.lang.Enum), java.lang.Enum#valueOf(java.lang.Class, java.lang.String), java.lang.Enum#getDeclaringClass(), java.lang.Enum#ordinal(), java.lang.Enum#wait(long, int), java.lang.Enum#wait(long), java.lang.Enum#wait(), java.lang.Enum#getClass(), java.lang.Enum#notify(), java.lang.Enum#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns the current operating system we are running on.
Get the matching Platform instance for the given name. If the name is not supported than this method returns NULL.
name - the OS nameReturns the current platform architecture.
The OS family for the current platform.
Is this platform a 64-bit platform?
Is current plaform MacOs?
Is current platform Unix?
Is current platform Windows?
Groovy Documentation