From d6c2de6b8cb675f493bf5de1a41ef1d0d291d256 Mon Sep 17 00:00:00 2001 From: "Frederick G. Oconer" Date: Tue, 13 Jun 2006 02:24:23 +0000 Subject: [PATCH] Added support for reportType parameter. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@413787 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/maven/ConsumerMojo.java | 9 ++++++++- .../java/org/apache/activemq/maven/ProducerMojo.java | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ConsumerMojo.java b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ConsumerMojo.java index 4417d79801..a04f5f04df 100644 --- a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ConsumerMojo.java +++ b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ConsumerMojo.java @@ -183,6 +183,12 @@ public class ConsumerMojo */ private String reportDirectory; + /** + * @parameter expression="${sysTest.reportType}" default-value="xml" + * @required + */ + private String reportType; + public void execute() throws MojoExecutionException { @@ -224,7 +230,8 @@ public class ConsumerMojo "sysTest.numClients=" + numClients, "sysTest.totalDests=" + totalDests, "sysTest.destDistro=" + destDistro, - "sysTest.reportDirectory=" + reportDirectory + "sysTest.reportDirectory=" + reportDirectory, + "sysTest.reportType=" + reportType }; return options; diff --git a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ProducerMojo.java b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ProducerMojo.java index 6af7928f13..dae04b169b 100644 --- a/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ProducerMojo.java +++ b/tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/maven/ProducerMojo.java @@ -151,6 +151,12 @@ public class ProducerMojo */ private String reportDirectory; + /** + * @parameter expression="${sysTest.reportType}" default-value="xml" + * @required + */ + private String reportType; + public void execute() throws MojoExecutionException { @@ -184,7 +190,8 @@ public class ProducerMojo "sysTest.numClients=" + numClients, "sysTest.totalDests=" + totalDests, "sysTest.destDistro=" + destDistro, - "sysTest.reportDirectory=" + reportDirectory + "sysTest.reportDirectory=" + reportDirectory, + "sysTest.reportType=" + reportType }; return options;