You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2011/04/14 22:12:52 UTC
svn commit: r1092498 -
/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
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} */