summaryrefslogtreecommitdiff
path: root/qpid/java/common.xml
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/common.xml')
-rw-r--r--qpid/java/common.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/qpid/java/common.xml b/qpid/java/common.xml
index 67b0714a4a..3ebf07a210 100644
--- a/qpid/java/common.xml
+++ b/qpid/java/common.xml
@@ -180,7 +180,12 @@
<taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
</target>
- <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.dir}/findbugs-ant.jar"/>
+ <target name="findbugs-init">
+ <available file="${findbugs.dir}/findbugs-ant.jar" property="findbugs-ant.jar.present"/>
+ <fail unless="findbugs-ant.jar.present" message="Please follow the instructions at ${findbugs.dir}/README.txt to configure FindBugs"/>
+
+ <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpath="${findbugs.dir}/findbugs-ant.jar"/>
+ </target>
<target name="help" description="display detailed build documentation">
<echo>