com.lazerycode.jmeter.properties
Class PropertyHandler

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

public class PropertyHandler
extends JMeterMojo

Handler to deal with properties file creation.

Author:
Arne Franken, Mark Collin

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PropertyHandler(File sourceDirectory, File outputDirectory, org.apache.maven.artifact.Artifact jMeterConfigArtifact)
           
 
Method Summary
 void configureJMeterPropertiesFiles()
          Create/Copy the properties files used by JMeter into the JMeter directory tree.
 void mergePropertiesFile(JMeterPropertiesFiles propertyFile, File outputDirectory)
          Merge properties from sourceFile and customProperties into the given outputDirectory
 void setJMeterGlobalProperties(Map<String,String> value)
           
 void setJMeterProperties(Map<String,String> value)
           
 void setJMeterSaveServiceProperties(Map<String,String> value)
           
 void setJMeterSystemProperties(Map<String,String> value)
           
 void setJMeterUpgradeProperties(Map<String,String> value)
           
 void setJmeterUserProperties(Map<String,String> value)
           
 
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

PropertyHandler

public PropertyHandler(File sourceDirectory,
                       File outputDirectory,
                       org.apache.maven.artifact.Artifact jMeterConfigArtifact)
                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException
Method Detail

setJMeterProperties

public void setJMeterProperties(Map<String,String> value)

setJMeterSaveServiceProperties

public void setJMeterSaveServiceProperties(Map<String,String> value)

setJMeterSystemProperties

public void setJMeterSystemProperties(Map<String,String> value)

setJMeterUpgradeProperties

public void setJMeterUpgradeProperties(Map<String,String> value)

setJmeterUserProperties

public void setJmeterUserProperties(Map<String,String> value)

setJMeterGlobalProperties

public void setJMeterGlobalProperties(Map<String,String> value)

configureJMeterPropertiesFiles

public void configureJMeterPropertiesFiles()
                                    throws org.apache.maven.plugin.MojoExecutionException
Create/Copy the properties files used by JMeter into the JMeter directory tree.

Throws:
org.apache.maven.plugin.MojoExecutionException

mergePropertiesFile

public void mergePropertiesFile(JMeterPropertiesFiles propertyFile,
                                File outputDirectory)
                         throws org.apache.maven.plugin.MojoExecutionException
Merge properties from sourceFile and customProperties into the given outputDirectory

Parameters:
propertyFile -
outputDirectory -
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2012. All Rights Reserved.