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 fileContent)
          Get a map environment variables from the content
 Map<String,String> getVarsFromPropertiesFile(File propertiesFile)
          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
 

Constructor Detail

PropertiesLoader

public PropertiesLoader()
Method Detail

getVarsFromPropertiesFile

public Map<String,String> getVarsFromPropertiesFile(File propertiesFile)
                                             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 Map<String,String> getVarsFromPropertiesContent(String fileContent)
                                                throws org.jenkinsci.lib.envinject.EnvInjectException
Get a map environment variables from the content

Parameters:
fileContent -
Returns:
Throws:
org.jenkinsci.lib.envinject.EnvInjectException


Copyright © 2004-2012. All Rights Reserved.