]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fail build on findbugs
authorSimon Steiner <ssteiner@apache.org>
Tue, 26 May 2015 07:41:47 +0000 (07:41 +0000)
committerSimon Steiner <ssteiner@apache.org>
Tue, 26 May 2015 07:41:47 +0000 (07:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1681695 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index d63c593a2fddbc2e793415df2f7e3419b7687c82..c499502d3431b7a5c1cf0f9bc98901faa54e3da8 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1154,7 +1154,7 @@ NOTE:
       </classpath>
     </taskdef>
     <findbugs home="${findbugs.home.dir}" output="${findbugs.output.format}" reportLevel="low" effort="max"
-              outputFile="${build.dir}/report_findbugs.${findbugs.output.extension}" excludeFilter="findbugs-exclude.xml" jvmargs="-Xmx1024m">
+              outputFile="${build.dir}/report_findbugs.${findbugs.output.extension}" excludeFilter="findbugs-exclude.xml" jvmargs="-Xmx1024m" warningsProperty="findbugs.warnings">
       <sourcePath path="${src.java.dir}"/>
       <class location="${build.classes.dir}"/>
       <auxClasspath>
@@ -1167,6 +1167,7 @@ NOTE:
         </path>
       </auxClasspath>
     </findbugs>
+    <fail if="findbugs.warnings"/>
   </target>
   <target name="findbugs-xml" depends="findbugs-avail" if="findbugs.present" description="Runs findbugs for a code quality report in XML">
     <property name="findbugs.output.format" value="xml"/>