maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r649688 - /maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdFileInfo.java
Date Fri, 18 Apr 2008 20:58:39 GMT
Author: bentmann
Date: Fri Apr 18 13:58:37 2008
New Revision: 649688

URL: http://svn.apache.org/viewvc?rev=649688&view=rev
Log:
o Guarded against relative paths

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

Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdFileInfo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdFileInfo.java?rev=649688&r1=649687&r2=649688&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdFileInfo.java
(original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdFileInfo.java
Fri Apr 18 13:58:37 2008
@@ -36,7 +36,14 @@
                        String x ) 
     {
         this.project = project;
-        this.sourceDir = dir;
+        if ( dir.isAbsolute() )
+        {
+            this.sourceDir = dir;
+        }
+        else
+        {
+            this.sourceDir = new File( project.getBasedir(), dir.getPath() );
+        }
         this.xref = x;
     }
     



Mime
View raw message