Package aQute.lib.io
Class IO.EnvironmentCalculator
java.lang.Object
aQute.lib.io.IO.EnvironmentCalculator
- Enclosing class:
- IO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
iswindows
private boolean iswindows
-
-
Constructor Details
-
EnvironmentCalculator
public EnvironmentCalculator(boolean iswindows)
-
-
Method Details
-
getSystemEnv
Get the value of a system environment variable. Expand any macros (%...%) if run on windows. Generally, on Linux et. al. environment variables are already expanded.- Parameters:
key
- the environment variable name- Returns:
- the value with expanded macros if on windows.
-
getSystemEnv
-
getenv
-
getHome
File getHome() -
getJavaHome
File getJavaHome() -
testFile
-