org.dawb.common.util.eclipse
Class Environment
java.lang.Object
org.dawb.common.util.eclipse.Environment
public class Environment
- extends java.lang.Object
Method Summary |
static void |
append(java.util.Map<java.lang.String,java.lang.String> env,
java.lang.String name,
java.lang.String value)
|
static void |
createEnvironmentVariables(java.lang.String bundleName,
java.lang.String linuxName,
java.lang.String windowsName)
Attempts to set environment variables automatically so that the user
does not have to set them before starting the application. |
static java.util.Map<java.lang.String,java.lang.String> |
getenv()
|
static java.util.Map<java.lang.String,java.lang.String> |
getwinenv()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Environment
public Environment()
createEnvironmentVariables
public static void createEnvironmentVariables(java.lang.String bundleName,
java.lang.String linuxName,
java.lang.String windowsName)
throws java.lang.Exception
- Attempts to set environment variables automatically so that the user
does not have to set them before starting the application.
This is in addition to the Bundle-NativeCode: statement in the plugin
as depending on the native code bundled, it will not work.
This should be called before the bundle is loaded. It will be necessary
to have the bundle in a non-compressed folder for this to work normally.
- Parameters:
context
-
- Throws:
java.lang.Exception
getwinenv
public static java.util.Map<java.lang.String,java.lang.String> getwinenv()
throws java.lang.Exception
- Throws:
java.lang.Exception
getenv
public static java.util.Map<java.lang.String,java.lang.String> getenv()
throws java.lang.Exception
- Throws:
java.lang.Exception
append
public static void append(java.util.Map<java.lang.String,java.lang.String> env,
java.lang.String name,
java.lang.String value)