com.lazerycode.jmeter.properties
Class PropertyFileMerger
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.lazerycode.jmeter.JMeterMojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
PropertyFileMerger
public PropertyFileMerger()
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.