Author: fgiust Date: Fri Dec 30 15:21:32 2005 New Revision: 360194 URL: http://svn.apache.org/viewcvs?rev=360194&view=rev Log: MCHECKSTYLE-26 don't throw an exception when there are no sources and the checkstyle goal did not generate an output file
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java?rev=360194&r1=360193&r2=360194&view=diff ============================================================================== --- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java (original) +++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java Fri Dec 30 15:21:32 2005 @@ -68,8 +68,9 @@ if ( !outputFile.exists() ) { - throw new MojoExecutionException( "Unable to perform checkstyle:check, " + getLog().info( "Unable to perform checkstyle:check, " + "unable to find checkstyle:checkstyle outputFile." ); + return; } try