• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0"?>
2<project name="dexmaker" default="jar">
3
4    <target name="compile">
5        <mkdir dir="build/dx/classes"/>
6        <javac srcdir="src/dx/java" includes="**" destdir="build/dx/classes"
7               debug="on" source="1.5" target="1.5" includeantruntime="false">
8            <compilerarg value="-Xlint"/>
9        </javac>
10        <mkdir dir="build/main/classes"/>
11        <javac srcdir="src/main/java" includes="**" destdir="build/main/classes"
12               debug="on" source="1.5" target="1.5" includeantruntime="false">
13            <compilerarg value="-Xlint"/>
14            <classpath>
15                <pathelement location="build/dx/classes" />
16            </classpath>
17        </javac>
18        <mkdir dir="build/test/classes"/>
19        <javac srcdir="src/test/java" includes="**" destdir="build/test/classes"
20               debug="on" source="1.5" target="1.5" includeantruntime="false">
21            <compilerarg value="-Xlint"/>
22            <classpath>
23                <pathelement location="build/main/classes" />
24                <pathelement location="lib/junit.jar" />
25            </classpath>
26        </javac>
27    </target>
28
29    <target name="jar" depends="compile">
30        <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
31            classpath="lib/jarjar.jar"/>
32        <jarjar jarfile="build/dexmaker.jar">
33            <fileset dir="build/dx/classes"/>
34            <fileset dir="build/main/classes"/>
35            <rule pattern="com.android.dx.**" result="com.google.dexmaker.dx.@1"/>
36        </jarjar>
37    </target>
38
39    <target name="docs">
40        <mkdir dir="build/api"/>
41		<javadoc destdir="build/api" windowtitle="dexmaker" source="1.5">
42			<packageset dir="src/main/java"/>
43            <link href="http://download.oracle.com/javase/6/docs/api/"/>
44		</javadoc>
45	</target>
46
47    <target name="clean">
48        <delete dir="build"/>
49    </target>
50
51</project>
52
53