Class DefaultProcessingEnvironment
java.lang.Object
org.apache.commons.exec.environment.DefaultProcessingEnvironment
- Direct Known Subclasses:
- OpenVmsProcessingEnvironment
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 SummaryFieldsModifier and TypeFieldDescriptionThe environment variables of the process
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates the list of environment variables for this process.protected CommandLineDeprecated.No longer needed.Gets the list of environment variables for this process.protected BufferedReaderDeprecated.No longer needed.
- 
Field Details- 
procEnvironmentThe environment variables of the process
 
- 
- 
Constructor Details- 
DefaultProcessingEnvironmentpublic DefaultProcessingEnvironment()Constructs a new instance.
 
- 
- 
Method Details- 
createProcEnvironmentCreates the list of environment variables for this process.- Returns:
- a amp containing the environment variables.
- Throws:
- IOException- the operation failed.
 
- 
getProcEnvCommandDeprecated.No longer needed.Determine the OS specific command line to get a list of environment variables.- Returns:
- the command line.
 
- 
getProcEnvironmentGets the list of environment variables for this process.- Returns:
- a map containing the environment variables.
- Throws:
- IOException- obtaining the environment variables failed.
 
- 
runProcEnvCommandDeprecated.No longer needed.Runs a process to list the environment variables.- Returns:
- a reader containing the output of the process.
- Throws:
- IOException- starting the process failed.
 
 
-