• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="jdiff" default="jar" basedir=".">
3
4<description>
5Builds Android's jdiff.jar and places it in device/extlibs/jdiff-1.1.0/.
6</description>
7
8<target name="init" description="Properties used by other targets">
9  <property name="extlibs.dir" value="${basedir}/../../extlibs/jdiff-1.1.0/" />
10  <property name="src.dir" value="${basedir}/src" />
11  <property name="build.dir" value="build" />
12  <property name="classes.dir" value="${build.dir}/classes" />
13  <property name="lib.dir" value="${build.dir}/lib" />
14  <property name="version" value="1.1.0" />
15  <property name="debug" value="true" />
16  <property name="JDIFF_HOME" value="${extlibs.dir}" />
17</target>
18
19<target name="create.dirs" depends="init">
20  <mkdir dir="${build.dir}" />
21  <mkdir dir="${lib.dir}" />
22  <mkdir dir="${classes.dir}" />
23</target>
24
25<target	name="clean" depends="init">
26  <delete includeEmptyDirs="true"
27          verbose="false"
28          quiet="true">
29    <fileset dir="${build.dir}" />
30  </delete>
31</target>
32
33<target name="compile" depends="create.dirs" description="Compile everything except the Ant task">
34  <javac srcdir="${src.dir}"
35         destdir="${classes.dir}"
36         debug="${debug}"
37         excludes="jdiff/JDiffAntTask.java"
38         fork="true"
39         includeJavaRuntime="false"
40         includeAntRuntime="yes">
41  </javac>
42</target>
43
44<!-- Place the jdiff.jar file in <branch-root>/device/extlibs/jdiff-.1.0/ (under version control) -->
45<target name="jar" depends="compile">
46  <jar jarfile="${basedir}/jdiff.jar"
47       basedir="${classes.dir}"
48       includes="*jdiff/*.class"
49       excludes="*jdiff/JDiffAntTask*.class" />
50</target>
51
52</project>
53