aboutsummaryrefslogtreecommitdiffstats
path: root/main/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'main/build.xml')
-rw-r--r--main/build.xml27
1 files changed, 26 insertions, 1 deletions
diff --git a/main/build.xml b/main/build.xml
index b6f5170..40be059 100644
--- a/main/build.xml
+++ b/main/build.xml
@@ -61,7 +61,32 @@
description="Changes API key to debug">
</target>
- <!-- extension targets. Uncomment the ones where you want to do custom work
+ <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
+ <classpath>
+ <pathelement location="./compile-libs/findbugs-ant.jar"/>
+ </classpath>
+ </taskdef>
+
+ <target name="findbugs">
+ <mkdir dir="reports" />
+ <gettarget
+ androidJarFileOut="project.target.android.jar"
+ androidAidlFileOut="project.target.framework.aidl"
+ bootClassPathOut="project.target.class.path"
+ targetApiOut="project.target.apilevel"
+ minSdkVersionOut="project.minSdkVersion" />
+ <findbugs
+ home="${findbugs.home}"
+ output="xml"
+ outputFile="reports/findbugs.xml"
+ excludefilter="project/findbugs/exclusions.xml"
+ effort="max">
+ <auxClasspath path="${project.target.android.jar}" />
+ <class location="${out.dir}" />
+ </findbugs>
+ </target>
+
+ <!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<target name="-pre-build">
<condition property="build.mode.release" else="false">