maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vmas...@apache.org
Subject svn commit: r328358 - in /maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover: AbstractCloverMojo.java CloverInstrumentMojo.java
Date Tue, 25 Oct 2005 13:33:58 GMT
Author: vmassol
Date: Tue Oct 25 06:33:54 2005
New Revision: 328358

URL: http://svn.apache.org/viewcvs?rev=328358&view=rev
Log:
MNG-1319: Allow user to pass the clover flush polivy and flush interval they want (default
to threaded with a 5000ms interval).

Modified:
    maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java
    maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentMojo.java

Modified: maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java?rev=328358&r1=328357&r2=328358&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java
(original)
+++ maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/AbstractCloverMojo.java
Tue Oct 25 06:33:54 2005
@@ -27,13 +27,29 @@
     private String licenseFile;
 
     /**
+     * The <a href="http://cenqua.com/clover/doc/adv/flushpolicies.html"Clover flush policy</a>
+     * to use. Valid values are "directed", "interval" or "threaded".
+     *  
+     * @parameter default-value="threaded"
+     */
+    protected String flushPolicy;
+
+    /**
+     * When the Clover Flush Policy is set to "interval" or threaded this value is the minimum

+     * period between flush operations (in milliseconds).
+     *
+     * @parameter default-value="5000"
+     */
+    protected int flushInterval;
+    
+    /**
      * Whether the Clover instrumentation should use the Clover <code>jdk14</code>
or
      * <code>jdk15<code> flags to parse sources.
      *
      * @parameter
      */
     protected String jdk;
-    
+
     /**
      * Registers the license file for Clover runtime by setting the
      * <code>clover.license.path</code> system property. If the <code>licenseFile</code>

Modified: maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentMojo.java?rev=328358&r1=328357&r2=328358&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentMojo.java
(original)
+++ maven/components/trunk/maven-plugins/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverInstrumentMojo.java
Tue Oct 25 06:33:54 2005
@@ -154,13 +154,10 @@
     {
         List parameters = new ArrayList();
      
-        // TODO: The usage of the threaded flushpolicy model and a flush policy is temporary
while 
-        // we wait for surefire to be able to fork unit tests. See http://jira.codehaus.org/browse/MNG-441
-
         parameters.add( "-p" );
-        parameters.add( "threaded" );
+        parameters.add( this.flushPolicy );
         parameters.add( "-f" );
-        parameters.add( "100" );
+        parameters.add( "" + this.flushInterval );
 
         parameters.add( "-i" );
         parameters.add( this.cloverDatabase );



Mime
View raw message