org.jenkinsci.plugins.envinject.service
Class PropertiesLoader
java.lang.Object
org.jenkinsci.plugins.envinject.service.PropertiesLoader
- All Implemented Interfaces:
- Serializable
public class PropertiesLoader
- extends Object
- implements Serializable
- Author:
- Gregory Boissinot
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesLoader
public PropertiesLoader()
getVarsFromPropertiesFile
public Map<String,String> getVarsFromPropertiesFile(File propertiesFile,
Map<String,String> currentEnvVars)
throws org.jenkinsci.lib.envinject.EnvInjectException
- Get environment variables from a properties file path
- Parameters:
propertiesFile
- the properties filecurrentEnvVars
- the current environment variables to resolve against
- Returns:
- the environment variables
- Throws:
org.jenkinsci.lib.envinject.EnvInjectException
getVarsFromPropertiesContent
public Map<String,String> getVarsFromPropertiesContent(String content,
Map<String,String> currentEnvVars)
throws org.jenkinsci.lib.envinject.EnvInjectException
- Get a map environment variables from the content
- Parameters:
content
- the properties content to parsecurrentEnvVars
- the current environment variables to resolve against
- Returns:
- the environment variables
- Throws:
org.jenkinsci.lib.envinject.EnvInjectException
Copyright © 2004-2012. All Rights Reserved.