summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2015-05-26 07:41:47 +0000
committerSimon Steiner <ssteiner@apache.org>2015-05-26 07:41:47 +0000
commit0fb8462107767bb0b39f6cd872542722ac683b8e (patch)
treeae594a6aa304b5e656bc864fa16149730f1c04ae /build.xml
parent4d35002582177c694e914aa3a0850e6c0a10b591 (diff)
downloadxmlgraphics-fop-0fb8462107767bb0b39f6cd872542722ac683b8e.tar.gz
xmlgraphics-fop-0fb8462107767bb0b39f6cd872542722ac683b8e.zip
Fail build on findbugs
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1681695 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index d63c593a2..c499502d3 100644
--- 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"/>