org.jruby.ext.posix.util
public class Platform extends Object
Field Summary | |
---|---|
static String | ARCH |
static boolean | IS_32_BIT |
static boolean | IS_64_BIT |
static boolean | IS_BSD |
static boolean | IS_FREEBSD |
static boolean | IS_LINUX |
static boolean | IS_MAC |
static boolean | IS_OPENBSD |
static boolean | IS_SOLARIS |
static boolean | IS_WINDOWS |
static boolean | IS_WINDOWS_20X |
static boolean | IS_WINDOWS_7 |
static boolean | IS_WINDOWS_9X |
static boolean | IS_WINDOWS_NT |
static boolean | IS_WINDOWS_VISTA |
static boolean | IS_WINDOWS_XP |
static String | OS_NAME |
static Map<String,String> | OS_NAMES |
static String | OS_NAME_LC |
Method Summary | |
---|---|
static String | envCommand() |
static String | getOSName() |
static String | getProperty(String property, String defValue)
An extension over System.getProperty method.
|
System.getProperty
method.
Handles security restrictions, and returns the default
value if the access to the property is restricted.Parameters: property The system property name. defValue The default value.
Returns: The value of the system property, or the default value.