org.jenkinsci.plugins.envinject.service
Class PropertiesService

java.lang.Object
  extended by org.jenkinsci.plugins.envinject.service.PropertiesService
All Implemented Interfaces:
Serializable

public class PropertiesService
extends Object
implements Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Constructor Summary
PropertiesService()
           
 
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

PropertiesService

public PropertiesService()
Method Detail

getVarsFromPropertiesFile

public Map<String,String> getVarsFromPropertiesFile(File propertiesFile)
                                             throws 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:
EnvInjectException

getVarsFromPropertiesContent

public Map<String,String> getVarsFromPropertiesContent(String fileContent)
                                                throws EnvInjectException
Get a map environment variables from the content

Parameters:
fileContent -
Returns:
Throws:
EnvInjectException


Copyright © 2004-2011. All Rights Reserved.