|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.exec.environment.DefaultProcessingEnvironment
public class DefaultProcessingEnvironment
Helper class to determine the environment variable for the OS. Depending on the JDK the environment variables can be either retrieved directly from the JVM or requires starting a process to get them running an OS command line.
Field Summary | |
---|---|
protected Map |
procEnvironment
the environment variables of the process |
Constructor Summary | |
---|---|
DefaultProcessingEnvironment()
|
Method Summary | |
---|---|
protected Map |
createProcEnvironment()
Find the list of environment variables for this process. |
protected CommandLine |
getProcEnvCommand()
Determine the OS specific command line to get a list of environment variables. |
Map |
getProcEnvironment()
Find the list of environment variables for this process. |
protected BufferedReader |
runProcEnvCommand()
Start a process to list the environment variables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map procEnvironment
Constructor Detail |
---|
public DefaultProcessingEnvironment()
Method Detail |
---|
public Map getProcEnvironment() throws IOException
IOException
- obtaining the environment variables failedprotected Map createProcEnvironment() throws IOException
IOException
- the operation failedprotected BufferedReader runProcEnvCommand() throws IOException
IOException
- starting the process failedprotected CommandLine getProcEnvCommand()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |