1 Ax.lang.System
The System class contains several useful class fields and methods. It's static, so it cannot be instantiated.
Return | Method | Description |
---|---|---|
String | getEnv() | Returns an unmodifiable string map view of the current system environment. |
Map<String, String> | getEnv(String key) | Gets the value of the specified environment variable |
String | getProperty(String key) | Gets the system property indicated by the specified key. |
String | getProperty(String key, String default) | Gets the system property indicated by the specified key. |
int | getIntProperty(String key, int default) | Gets the system property indicated by the specified key. |
boolean | getBooleanProperty(String key, boolean default) | Gets the system property indicated by the specified key. |
void | sleep(millis) | Causes the currently executing thread to sleep for the specified number of milliseconds |
boolean | isBatch() | Returns whether the script is run in batch mode |
Copy
<script> var home = Ax.lang.System.getEnv("HOME"); console.log(home); </script>
/home/axional