org.jenkinsci.plugins.envinject.service
Class PropertiesLoader

java.lang.Object
  extended by 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
PropertiesLoader()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesLoader

public PropertiesLoader()
Method Detail

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 file
currentEnvVars - 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 parse
currentEnvVars - the current environment variables to resolve against
Returns:
the environment variables
Throws:
org.jenkinsci.lib.envinject.EnvInjectException


Copyright © 2004-2013. All Rights Reserved.