com.lazerycode.jmeter.properties
Class PropertyFileMerger

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.lazerycode.jmeter.JMeterMojo
          extended by com.lazerycode.jmeter.properties.PropertyFileMerger
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class PropertyFileMerger
extends JMeterMojo

Handler that can merge Properties objects and Maps

Author:
Arne Franken, Mark Collin

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PropertyFileMerger()
           
 
Method Summary
 Properties mergeProperties(Map<String,String> customProperties, Properties baseProperties)
          Merge given Map into given Properties object
 Properties mergePropertiesFiles(Properties source, Properties additions)
          Merge two properties files together.
 
Methods inherited from class com.lazerycode.jmeter.JMeterMojo
execute
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFileMerger

public PropertyFileMerger()
Method Detail

mergePropertiesFiles

public Properties mergePropertiesFiles(Properties source,
                                       Properties additions)
Merge two properties files together. The additions will overwrite any existing properties in source if required.

Parameters:
source -
additions -
Returns:

mergeProperties

public Properties mergeProperties(Map<String,String> customProperties,
                                  Properties baseProperties)
Merge given Map into given Properties object

Parameters:
customProperties - Map to merge into the Properties object
Returns:
merged Properties object


Copyright © 2012. All Rights Reserved.