maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vmas...@apache.org
Subject svn commit: r358840 - /maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverReportMojo.java
Date Fri, 23 Dec 2005 17:27:44 GMT
Author: vmassol
Date: Fri Dec 23 09:27:39 2005
New Revision: 358840

URL: http://svn.apache.org/viewcvs?rev=358840&view=rev
Log:
MPCLOVER-5: Fixed generating clover reports when using multimodule projects.

Modified:
    maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverReportMojo.java

Modified: maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverReportMojo.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverReportMojo.java?rev=358840&r1=358839&r2=358840&view=diff
==============================================================================
--- maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverReportMojo.java
(original)
+++ maven/plugins/trunk/maven-clover-plugin/src/main/java/org/apache/maven/plugin/clover/CloverReportMojo.java
Fri Dec 23 09:27:39 2005
@@ -25,6 +25,7 @@
 import org.codehaus.doxia.sink.Sink;
 import org.codehaus.doxia.site.renderer.SiteRenderer;
 
+import java.io.File;
 import java.util.Locale;
 import java.util.ResourceBundle;
 
@@ -57,7 +58,7 @@
      * @parameter expression="${project.reporting.outputDirectory}/clover"
      * @required
      */
-    private String outputDirectory;
+    private File outputDirectory;
 
     /**
      * When the Clover Flush Policy is set to "interval" or threaded this value is the minimum

@@ -124,11 +125,11 @@
      */
     private String[] createCliArgs()
     {
-        return new String[]{
+        return new String[] {
             "-t", "Maven Clover report", 
             "-p", (String) this.project.getCompileSourceRoots().get( 0 ),
             "-i", this.cloverDatabase, 
-            "-o", this.outputDirectory};
+            "-o", this.outputDirectory.getPath() };
     }
 
     public String getOutputName()
@@ -154,7 +155,7 @@
      */
     protected String getOutputDirectory()
     {
-        return this.outputDirectory;
+        return this.outputDirectory.getAbsoluteFile().toString();
     }
 
     /**



Mime
View raw message