Author: veithen
Date: Thu Nov  8 18:02:02 2012
New Revision: 1407190

URL: http://svn.apache.org/viewvc?rev=1407190&view=rev
Log:
Carefully crafted hack to ensure that the JaCoCo analysis contains the coverage 
generated by server-side code.

Modified:
    
axis/axis1/java/trunk/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java

Modified: 
axis/axis1/java/trunk/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
URL: 
http://svn.apache.org/viewvc/axis/axis1/java/trunk/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java?rev=1407190&r1=1407189&r2=1407190&view=diff
==============================================================================
--- 
axis/axis1/java/trunk/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
 (original)
+++ 
axis/axis1/java/trunk/maven/maven-axis-server-plugin/src/main/java/org/apache/axis/tools/maven/server/AbstractStartProcessMojo.java
 Thu Nov  8 18:02:02 2012
@@ -87,6 +87,17 @@ public abstract class AbstractStartProce
      */
     private boolean jmx;
     
+    /**
+     * Arbitrary JVM options to set on the command line. Note that this 
parameter uses the same
+     * expression as the Surefire and Failsafe plugins. By setting the 
<code>argLine</code>
+     * property, it is therefore possible to easily pass a common set of JVM 
options to all
+     * processes involved in the tests. Since the JaCoCo Maven plugin also 
sets this property, code
+     * coverage generated on the server-side will be automatically included in 
the analysis.
+     * 
+     * @parameter expression="${argLine}"
+     */
+    private String argLine;
+    
     protected boolean isDebug() {
         return debug;
     }
@@ -125,6 +136,9 @@ public abstract class AbstractStartProce
         if (jmx) {
             processVMArgs(vmArgs, jmxArgs);
         }
+        if (argLine != null) {
+            processVMArgs(vmArgs, argLine);
+        }
         if (log.isDebugEnabled()) {
             log.debug("Additional VM args: " + vmArgs);
         }


Reply via email to