|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.exec.environment.EnvironmentUtils
public class EnvironmentUtils
Wrapper for environment variables.
| Method Summary | |
|---|---|
static void |
addVariableToEnvironment(Map environment,
String keyAndValue)
Add a key/value pair to the given environment. |
static Map |
getProcEnvironment()
Find the list of environment variables for this process. |
static String[] |
toStrings(Map environment)
Get the variable list as an array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String[] toStrings(Map environment)
environment - the environment to use, may be null
null if and only if
the input map was null
public static Map getProcEnvironment()
throws IOException
null
IOException - the operation failed
public static void addVariableToEnvironment(Map environment,
String keyAndValue)
environment - the current environmentkeyAndValue - the key/value pair
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||