jenkins.plugins.shiningpanda.utils
Class EnvVarsUtil

java.lang.Object
  extended by jenkins.plugins.shiningpanda.utils.EnvVarsUtil

public class EnvVarsUtil
extends Object


Constructor Summary
EnvVarsUtil()
           
 
Method Summary
static String expand(String value)
          Expand a value with the current environment variable.
static Map<String,String> getLibs(hudson.FilePath filePath)
          Get the library environment for the provided folder.
static String[] getPythonHomeKeys()
          Return the list of variables used to define an installation home.
static hudson.EnvVars override(hudson.EnvVars original, Map<String,String> additional)
          Clone the original environment and override it with additional one (potentially containing some "+").
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvVarsUtil

public EnvVarsUtil()
Method Detail

getLibs

public static Map<String,String> getLibs(hudson.FilePath filePath)
Get the library environment for the provided folder.

Parameters:
filePath - The folder
Returns:
The environment

getPythonHomeKeys

public static String[] getPythonHomeKeys()
Return the list of variables used to define an installation home.

Returns:
The list of variables

override

public static hudson.EnvVars override(hudson.EnvVars original,
                                      Map<String,String> additional)
Clone the original environment and override it with additional one (potentially containing some "+").

Parameters:
original - The original environment
additional - The environment that overrides the original one
Returns:
The environment object

expand

public static String expand(String value)
Expand a value with the current environment variable.

Parameters:
value - The value to expand
Returns:
The expanded value


Copyright © 2004-2012. All Rights Reserved.