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
|
@Nonnull public Map<String,String> getVarsFromPropertiesFile(@Nonnull File propertiesFile, @Nonnull 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
- Issue with content loading or processing@Nonnull public Map<String,String> getVarsFromPropertiesContent(@Nonnull String content, @Nonnull 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
- Issue with content loading or processingCopyright © 2016–2017. All rights reserved.