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