]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Have Checkstyle fail the build if there are any warnings
authorVincent Hennebert <vhennebert@apache.org>
Tue, 17 Dec 2013 17:27:03 +0000 (17:27 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Tue, 17 Dec 2013 17:27:03 +0000 (17:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1551637 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index af7bc2fa8232065720aa807298beccf327796ab9..7a0f2c5ed92f60c6f0047b20869c38ecbb1fd9a9 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1062,7 +1062,7 @@ NOTE:
   <target name="checkstyle" depends="package, checkstyle-avail" if="checkstyle.avail" description="Runs Checkstyle for a code quality report">
     <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask" classpathref="checkstyle-classpath"/>
     <mkdir dir="${build.dir}"/>
-    <checkstyle config="${checkstyle.config}" failonviolation="false">
+    <checkstyle config="${checkstyle.config}" failonviolation="true" maxWarnings="0">
       <classpath>
         <path refid="checkstyle-classpath"/>
         <pathelement location="${build.classes.dir}"/>