Home | History | Annotate | Download | only in testlib
      1 <?xml version="1.0"?>
      2 
      3 <project name="guice-testlib" basedir="." default="jar">
      4 
      5   <import file="../../common.xml"/>
      6 
      7   <target name="compile" description="Compile Java source." depends="common.compile">
      8     <!--
      9       Build the throwingproviders extension using an ant subtask. This could be
     10       accomplished using either the "include" [1] directive, or extension points [2],
     11       but both were introduced in Ant 1.8 and we're using ant 1.6. This does
     12       mean that we will compile guice-throwingproviders twice.
     13       [1]: https://ant.apache.org/manual/Tasks/include.html
     14       [2]: https://ant.apache.org/manual/targets.html#extension-points
     15     -->
     16     <ant antfile="../throwingproviders/build.xml" target="compile"/>
     17   </target>
     18 
     19   <path id="compile.classpath">
     20     <fileset dir="${lib.dir}" includes="*.jar"/>
     21     <fileset dir="${lib.dir}/build" includes="*.jar"/>
     22     <pathelement path="../../build/classes"/>
     23     <pathelement path="../throwingproviders/build/classes"/>
     24   </path>
     25 
     26   <target name="jar" depends="compile, manifest" description="Build jar.">
     27     <jar destfile="${build.dir}/${ant.project.name}-${version}.jar"
     28         manifest="${build.dir}/META-INF/MANIFEST.MF">
     29       <fileset dir="${build.dir}/classes" />
     30     </jar>
     31   </target>
     32 
     33 </project>
     34