public final class Environment
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getOsName()
Gets the name of the operating system the tool is running under.
|
static boolean |
isDebugMode()
Checks whether debug mode is enabled.
|
static boolean |
isOsX()
Checks whether the tool is running in a Macintosh computer (under OS X).
|
static boolean |
isUnix()
Checks whether the tool is running in a Unix or Linux computer.
|
static boolean |
isWindows()
Checks whether the tool is running in a Windows computer.
|
static void |
setDebugMode(boolean isDebugMode)
Enables or disables debug mode.
|
public static java.lang.String getOsName()
public static boolean isWindows()
public static boolean isUnix()
public static boolean isOsX()
public static boolean isDebugMode()
true
if debug mode is enabled or false
otherwise.public static void setDebugMode(boolean isDebugMode)
isDebugMode
- Status of debug mode to be set (true
or false
).