public class PropertiesLoader extends Object implements Serializable
Constructor and Description |
---|
PropertiesLoader() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getVarsFromPropertiesContent(String content,
Map<String,String> currentEnvVars)
Get a map environment variables from the content
|
Map<String,String> |
getVarsFromPropertiesFile(File propertiesFile,
Map<String,String> currentEnvVars)
Get environment variables from a properties file path
|
public Map<String,String> getVarsFromPropertiesFile(File propertiesFile, Map<String,String> currentEnvVars) throws org.jenkinsci.lib.envinject.EnvInjectException
propertiesFile
- the properties filecurrentEnvVars
- the current environment variables to resolve againstorg.jenkinsci.lib.envinject.EnvInjectException
public Map<String,String> getVarsFromPropertiesContent(String content, Map<String,String> currentEnvVars) throws org.jenkinsci.lib.envinject.EnvInjectException
content
- the properties content to parsecurrentEnvVars
- the current environment variables to resolve againstorg.jenkinsci.lib.envinject.EnvInjectException
Copyright © 2004-2014. All Rights Reserved.