Package org.hortonmachine.gears.utils
Class OsCheck
- java.lang.Object
-
- org.hortonmachine.gears.utils.OsCheck
-
public final class OsCheck extends Object
helper class to check the operating system this Java VM runs in please keep the notes below as a pseudo-license http://stackoverflow.com/questions/228477/how-do-i-programmatically-determine-operating-system-in-java compare to http://svn.terracotta.org/svn/tc/dso/tags/2.6.4/code/base/common/src/com/tc/util/runtime/Os.java http://www.docjar.com/html/api/org/apache/commons/lang/SystemUtils.java.html
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOsCheck.OSTypetypes of Operating Systems
-
Field Summary
Fields Modifier and Type Field Description protected static OsCheck.OSTypedetectedOS
-
Constructor Summary
Constructors Constructor Description OsCheck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OsCheck.OSTypegetOperatingSystemType()detect the operating system from the os.name System property and cache the resultstatic booleanisRunningInDebug()Checks if the run was done in debug mode.
-
-
-
Field Detail
-
detectedOS
protected static OsCheck.OSType detectedOS
-
-
Method Detail
-
getOperatingSystemType
public static OsCheck.OSType getOperatingSystemType()
detect the operating system from the os.name System property and cache the result
-
isRunningInDebug
public static boolean isRunningInDebug()
Checks if the run was done in debug mode.- Returns:
- true, if the process was run in debug mode.
-
-