1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
8 <project name="findbugs_plugin" basedir=".">
11 Build findbugs_plugin for Chromium Android
13 <property name="src.dir" location="src" />
14 <property name="lib.dir" location="../../../third_party/findbugs/lib" />
15 <property name="bin.dir" location="lib" />
16 <property name="intermediate.dir" location="intermediate" />
17 <property name="jar.name" value="chromiumPlugin.jar" />
19 <path id="classpath.id">
20 <fileset dir="${lib.dir}">
21 <include name="**/*.jar" />
25 <target name="makedir">
26 <mkdir dir="${intermediate.dir}" />
27 <mkdir dir="${bin.dir}" />
30 <target name="findbugs_plugin_classes" depends="makedir">
31 <javac srcdir="${src.dir}" destdir="${intermediate.dir}"
32 classpathref="classpath.id" includeantruntime="false" />
35 <target name="copy_xml_files" depends="makedir">
36 <copy file="messages.xml" todir="${intermediate.dir}" />
37 <copy file="findbugs.xml" todir="${intermediate.dir}" />
40 <target name="findbugs_plugin_jar" depends="findbugs_plugin_classes, copy_xml_files">
41 <jar destfile="${bin.dir}/${jar.name}" basedir="${intermediate.dir}">
45 <target name="install" depends="findbugs_plugin_jar">
46 <delete dir="${intermediate.dir}" />