This requires a findbugs installation and the findbugs ant library.
---
 findbugs.xml |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/findbugs.xml b/findbugs.xml
new file mode 100644
index 0000000..18d51f2
--- /dev/null
+++ b/findbugs.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- This runs the findbugs [http://findbugs.sourceforge.net/] ant task for -->
+<!-- the libvirt-java jar file. -->
+
+<!-- You must have findbugs installed and Ant needs to be able to -->
+<!-- locate the findbugs-java.jar file. -->
+
+<!-- Either use the -lib command line option or copy this jar -->
+<!-- to ${user.home}/.ant/lib or ${ant.home}/lib. -->
+
+<!-- E.g. -->
+
+<!-- "ant -Dfindbugs.home=/path/fb -lib /path/fb/lib/findbugs-ant.jar -f 
findbugs.xml" -->
+
+<project name="Libvirt Java Bindings - Findbugs" default="findbugs">
+       <!-- findbugs task definition -->
+       <taskdef name="findbugs" 
classname="edu.umd.cs.findbugs.anttask.FindBugsTask" />
+
+       <!-- enable debugging to let findbugs report line numbers -->
+       <property name="javac.debug" value="on" />
+
+       <import file="build.xml"/>
+
+       <property name="findbugs.output" value="text" />
+
+       <target name="findbugs" depends="build">
+               <findbugs home="${findbugs.home}"
+                                 output="${findbugs.output}" >
+                       <auxClasspath refid="compile.classpath" />
+                       <sourcePath path="${basedir}/src/main/java" />
+                       <class location="${jar.file}" />
+               </findbugs>
+       </target>
+
+</project>
-- 
1.7.9.5

-- 
AV-Test GmbH, Henricistraße 20, 04155 Leipzig, Germany
Phone: +49 341 265 310 19
Web:<http://www.av-test.org>

Eingetragen am / Registered at: Amtsgericht Stendal (HRB 114076)
Geschaeftsfuehrer (CEO): Andreas Marx, Guido Habicht, Maik Morgenstern

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to