maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1092498 - /maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
Date Thu, 14 Apr 2011 20:12:52 GMT
Author: dennisl
Date: Thu Apr 14 20:12:52 2011
New Revision: 1092498

URL: http://svn.apache.org/viewvc?rev=1092498&view=rev
Log:
[MCHECKSTYLE-153] Checkstyle doesn't run on projects containing only test classes
Submitted by: Bruce Mackenzie Nielsen
Reviewed by: Dennis Lundberg

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

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java?rev=1092498&r1=1092497&r2=1092498&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
(original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
Thu Apr 14 20:12:52 2011
@@ -820,7 +820,7 @@ public class CheckstyleReport
     public boolean canGenerateReport()
     {
         // TODO: would be good to scan the files here
-        return sourceDirectory.exists();
+        return sourceDirectory.exists() || ( includeTestSourceDirectory && testSourceDirectory.exists()
);
     }
     
     /** {@inheritDoc} */



Mime
View raw message