Home | History | Annotate | Download | only in dexmaker
      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                 <pathelement location="lib/mockito-core-1.9.1-SNAPSHOT.jar" />
     17             </classpath>
     18         </javac>
     19         <mkdir dir="build/mockito/classes"/>
     20         <javac srcdir="src/mockito/java" includes="**" destdir="build/mockito/classes"
     21                debug="on" source="1.5" target="1.5" includeantruntime="false">
     22             <compilerarg value="-Xlint"/>
     23             <classpath>
     24                 <pathelement location="build/main/classes" />
     25                 <pathelement location="lib/mockito-core-1.9.1-SNAPSHOT.jar" />
     26             </classpath>
     27         </javac>
     28         <mkdir dir="build/test/classes"/>
     29         <javac srcdir="src/test/java" includes="**" destdir="build/test/classes"
     30                debug="on" source="1.5" target="1.5" includeantruntime="false">
     31             <compilerarg value="-Xlint"/>
     32             <classpath>
     33                 <pathelement location="build/main/classes" />
     34                 <pathelement location="lib/junit.jar" />
     35             </classpath>
     36         </javac>
     37     </target>
     38 
     39     <target name="jar" depends="compile">
     40         <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask"
     41             classpath="lib/jarjar.jar"/>
     42         <jarjar jarfile="build/dexmaker.jar">
     43             <fileset dir="build/dx/classes"/>
     44             <fileset dir="build/main/classes"/>
     45             <fileset dir="build/mockito/classes"/>
     46             <fileset dir="src/mockito/resources"/>
     47             <rule pattern="com.android.dx.**" result="com.google.dexmaker.dx.@1"/>
     48         </jarjar>
     49     </target>
     50 
     51     <target name="docs">
     52         <mkdir dir="build/api"/>
     53 		<javadoc destdir="build/api" windowtitle="dexmaker" source="1.5">
     54 			<packageset dir="src/main/java"/>
     55             <link href="http://download.oracle.com/javase/6/docs/api/"/>
     56 		</javadoc>
     57 	</target>
     58 
     59     <target name="clean">
     60         <delete dir="build"/>
     61     </target>
     62 
     63 </project>
     64 
     65