Package org.eclipse.cdt.utils.spawner
Class EnvironmentReader
- java.lang.Object
-
- org.eclipse.cdt.utils.spawner.EnvironmentReader
-
public class EnvironmentReader extends java.lang.ObjectThis class provides OS owned environment variables supplied asPropertiesclass.- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetEnvVar(java.lang.String key)static java.util.PropertiesgetEnvVars()
-
-
-
Method Detail
-
getEnvVars
public static java.util.Properties getEnvVars()
- Returns:
- a clone of the list of environment variables.
-
getEnvVar
public static java.lang.String getEnvVar(java.lang.String key)
- Parameters:
key- - name of environment variable (without $ sign).- Returns:
- value of environment variable.
-
-