maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r649586 - /maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java
Date Fri, 18 Apr 2008 16:10:50 GMT
Author: bentmann
Date: Fri Apr 18 09:10:48 2008
New Revision: 649586

URL: http://svn.apache.org/viewvc?rev=649586&view=rev
Log:
[MPMD-61] When running build using "-f <path_to_pom>/pom.xml" the site is stored in
working directory instead of project directory

Modified:
    maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java

Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java?rev=649586&r1=649585&r2=649586&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java
(original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java
Fri Apr 18 09:10:48 2008
@@ -58,7 +58,7 @@
      * @parameter expression="${project.reporting.outputDirectory}"
      * @required
      */
-    protected String outputDirectory;
+    protected File outputDirectory;
 
     /**
      * Site rendering component for generating the HTML report.
@@ -202,7 +202,7 @@
         {
             File xrefLoc = test ? xrefTestLocation : xrefLocation;
             
-            String relativePath = PathTool.getRelativePath( outputDirectory, xrefLoc.getAbsolutePath()
);
+            String relativePath = PathTool.getRelativePath( outputDirectory.getAbsolutePath(),
xrefLoc.getAbsolutePath() );
             if ( StringUtils.isEmpty( relativePath ) )
             {
                 relativePath = ".";
@@ -423,6 +423,6 @@
      */
     protected String getOutputDirectory()
     {
-        return outputDirectory;
+        return outputDirectory.getAbsolutePath();
     }
 }



Mime
View raw message