org.jenkinsci.plugins.envinject.service
Class PropertiesFileService

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

public class PropertiesFileService
extends java.lang.Object
implements java.io.Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Constructor Summary
PropertiesFileService()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getVarsFromPropertiesContent(java.lang.String fileContent)
          Get a map environment variables from the content
 java.util.Map<java.lang.String,java.lang.String> getVarsFromPropertiesFile(java.io.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

PropertiesFileService

public PropertiesFileService()
Method Detail

getVarsFromPropertiesFile

public java.util.Map<java.lang.String,java.lang.String> getVarsFromPropertiesFile(java.io.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 java.util.Map<java.lang.String,java.lang.String> getVarsFromPropertiesContent(java.lang.String fileContent)
                                                                              throws EnvInjectException
Get a map environment variables from the content

Parameters:
fileContent -
Returns:
Throws:
EnvInjectException


Copyright © 2004-2011. All Rights Reserved.