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 9<target name="init" description="Properties used by other targets"> 10 <property name="extlibs.dir" value="${basedir}/../../extlibs/jdiff-1.1.0/" /> 11 <property name="src.dir" value="${basedir}/src" /> 12 <property name="build.dir" value="build" /> 13 <property name="classes.dir" value="${build.dir}/classes" /> 14 <property name="lib.dir" value="${build.dir}/lib" /> 15 <property name="version" value="1.1.0" /> 16 <path id="class.path"> 17 <pathelement location="{basedir}/../../extlibs/xerces.jar" /> 18 </path> 19 <property name="debug" value="true" /> 20 <property name="JDIFF_HOME" value="${extlibs.dir}" /> 21</target> 22 23<target name="create.dirs" depends="init"> 24 <mkdir dir="${build.dir}" /> 25 <mkdir dir="${lib.dir}" /> 26 <mkdir dir="${classes.dir}" /> 27</target> 28 29<target name="clean" depends="init"> 30 <delete includeEmptyDirs="true" 31 verbose="false" 32 quiet="true"> 33 <fileset dir="${build.dir}" /> 34 </delete> 35</target> 36 37<target name="compile" depends="create.dirs" description="Compile everything except the Ant task"> 38 <javac srcdir="${src.dir}" 39 destdir="${classes.dir}" 40 debug="${debug}" 41 excludes="jdiff/JDiffAntTask.java" 42 includeJavaRuntime="yes"> 43 <classpath> 44 <path refid="class.path" /> 45 </classpath> 46<!--<compilerarg value="-Xlint:unchecked"/> --> 47 </javac> 48</target> 49 50<!-- Place the jdiff.jar file in <branch-root>/device/extlibs/jdiff-.1.0/ (under version control) --> 51 <target name="jar" depends="compile"> 52 <jar jarfile="${basedir}/jdiff.jar" 53 basedir="${classes.dir}" 54 includes="*jdiff/*.class" 55 excludes="*jdiff/JDiffAntTask*.class" /> 56</target> 57 58</project> 59