Package aQute.lib.io

Class IO.EnvironmentCalculator

java.lang.Object
aQute.lib.io.IO.EnvironmentCalculator
Enclosing class:
IO

static class IO.EnvironmentCalculator extends Object
  • Field Details

    • iswindows

      private boolean iswindows
  • Constructor Details

    • EnvironmentCalculator

      public EnvironmentCalculator(boolean iswindows)
  • Method Details

    • getSystemEnv

      String getSystemEnv(String key)
      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

      private String getSystemEnv(String key, Set<String> visited)
    • getenv

      String getenv(String key)
    • getHome

      File getHome()
    • getJavaHome

      File getJavaHome()
    • testFile

      private File testFile(String path)