org.jenkinsci.plugins.envinject.service
Class PropertiesFileService

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

public class PropertiesFileService
extends Object
implements Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Constructor Summary
PropertiesFileService(hudson.model.TaskListener listener)
           
 
Method Summary
 Map<String,String> getVarsFromPropertiesContent(String fileContent)
          Gte a map environment variables from the content
 Map<String,String> getVarsFromPropertiesFilePath(String filePath)
          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(hudson.model.TaskListener listener)
Method Detail

getVarsFromPropertiesFilePath

public Map<String,String> getVarsFromPropertiesFilePath(String filePath)
                                                 throws EnvInjectException
Get a map environment variables from a properties file path

Returns:
a environment map
Throws:
EnvInjectException

getVarsFromPropertiesContent

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

Returns:
a environment map
Throws:
EnvInjectException


Copyright © 2004-2011. All Rights Reserved.