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