maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1619221 - /maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java
Date Wed, 20 Aug 2014 20:39:06 GMT
Author: rfscholte
Date: Wed Aug 20 20:39:06 2014
New Revision: 1619221

URL: http://svn.apache.org/r1619221
Log:
add testCompileRoots to correct Map/List
get testCompileRoots from correct Map/List

Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java?rev=1619221&r1=1619220&r2=1619221&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java
(original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java
Wed Aug 20 20:39:06 2014
@@ -148,9 +148,9 @@ public class DefaultCheckstyleExecutor
                 List<String> testCompileSourceRoots = childProject.getTestCompileSourceRoots();
                 for ( String testCompileSourceRoot : testCompileSourceRoots )
                 {
-                    sourceDirectories.add( new File( testCompileSourceRoot ) );
+                    testSourceDirectories.add( new File( testCompileSourceRoot ) );
                 }
-                sourceDirectoriesByProject.put( childProject, sourceDirectories );
+                testSourceDirectoriesByProject.put( childProject, testSourceDirectories );
                 
                 prepareCheckstylePaths( request, childProject, classPathStrings, outputDirectories,
                                         sourceDirectories, testSourceDirectories );
@@ -230,7 +230,7 @@ public class DefaultCheckstyleExecutor
             for ( MavenProject childProject : request.getReactorProjects() )
             {
                 sourceDirectories = sourceDirectoriesByProject.get( childProject );
-                testSourceDirectories = sourceDirectoriesByProject.get( childProject );
+                testSourceDirectories = testSourceDirectoriesByProject.get( childProject
);
                 addSourceDirectory( checkerListener, sourceDirectories,
                                     testSourceDirectories,
                                     childProject.getResources(), request );



Mime
View raw message