maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r540549 - /maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/TestJavadocReport.java
Date Tue, 22 May 2007 12:07:35 GMT
Author: vsiveton
Date: Tue May 22 05:07:34 2007
New Revision: 540549

URL: http://svn.apache.org/viewvc?view=rev&rev=540549
Log:
o getProjectSourceRoots should include compile source roots for the TestJavadocReport

Modified:
    maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/TestJavadocReport.java

Modified: maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/TestJavadocReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/TestJavadocReport.java?view=diff&rev=540549&r1=540548&r2=540549
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/TestJavadocReport.java
(original)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/TestJavadocReport.java
Tue May 22 05:07:34 2007
@@ -20,6 +20,7 @@
  */
 
 import java.io.File;
+import java.util.ArrayList;
 import java.util.List;
 import java.util.Locale;
 
@@ -32,7 +33,7 @@
  *
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  * @version $Id$
- * @since 2.3<ol></ol>
+ * @since 2.3
  * @goal test-javadoc
  * @phase generate-test-sources
  * @requiresDependencyResolution test
@@ -199,7 +200,10 @@
      */
     protected List getProjectSourceRoots( MavenProject p )
     {
-        return p.getTestCompileSourceRoots();
+        List sourceRoots = new ArrayList( p.getCompileSourceRoots() );
+        sourceRoots.addAll( p.getTestCompileSourceRoots() );
+
+        return sourceRoots;
     }
 
     /**



Mime
View raw message