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
-
-
Constructor Summary
Constructors Constructor Description PropertiesLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getVarsFromPropertiesContent(String content, Map<String,String> currentEnvVars)
Get a map environment variables from the contentMap<String,String>
getVarsFromPropertiesFile(File propertiesFile, Map<String,String> currentEnvVars)
Get environment variables from a properties file path
-
-
-
Method Detail
-
getVarsFromPropertiesFile
@NonNull public Map<String,String> getVarsFromPropertiesFile(@NonNull File propertiesFile, @NonNull 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
- Issue with content loading or processing
-
getVarsFromPropertiesContent
@NonNull public Map<String,String> getVarsFromPropertiesContent(@NonNull String content, @NonNull 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
- Issue with content loading or processing
-
-