>From 017d4d3ade44f117d4a03747fe1b2d9ee5762c0c Mon Sep 17 00:00:00 2001 Message-Id: <017d4d3ade44f117d4a03747fe1b2d9ee5762c0c.1350037981.git.cb...@av-test.de> In-Reply-To: <cover.1350037981.git.cb...@av-test.de> References: <2da6f4a3691599408358374d182280f9141...@xmb-rcd-x04.cisco.com> <cover.1350037981.git.cb...@av-test.de> From: cb...@av-test.de (Claudio Bley) Date: Fri, 17 Aug 2012 14:47:38 +0200 Subject: [PATCH 03/15] Add findbugs build file for ant. To: libvir-list@redhat.com Organization: AV-Test GmbH, Germany
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> -- 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