forked from jweese/thrax
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
82 lines (68 loc) · 2.59 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<project name="Thrax" basedir="." default="jar">
<property environment="env"/>
<property name="src" value="./src"/>
<property name="build" value="./bin"/>
<property name="lib" value="./lib"/>
<property name="doc" value="./doc"/>
<property name="test" value="./test"/>
<property name="hadoop-src" value="edu/jhu/thrax/hadoop"/>
<property name="testng" value="${lib}/testng-5.8-jdk15.jar"/>
<property name="jarfiles" value="${lib}/jerboa.jar:${lib}/commons-lang3-3.1.jar:${lib}/hadoop-common-2.5.2.jar:${lib}/hadoop-mapreduce-client-core-2.5.2.jar:${lib}/aws-java-sdk-1.1.3.jar"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}"
classpath="${jarfiles}"
debug="on" includeantruntime="false">
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${build}/thrax.jar">
<fileset dir="${build}">
<include name="**/*.class"/>
</fileset>
<fileset dir=".">
<include name="AwsCredentials.properties"/>
</fileset>
<manifest>
<attribute name="Main-Class" value="edu.jhu.thrax.Thrax"/>
</manifest>
</jar>
</target>
<target name="source-jar">
<jar destfile="${build}/thrax-src.jar">
<fileset dir="${src}">
<include name="**/*.java"/>
</fileset>
</jar>
</target>
<target name="clean">
<delete verbose="true" quiet="true" dir="${build}"/>
</target>
<target name="compile-tests" depends="compile">
<javac srcdir="${test}" destdir="${build}"
classpath="${testng}:${build}:${jarfiles}" debug="on"
includeantruntime="false"/>
</target>
<taskdef resource="testngtasks" classpath="${testng}"/>
<target name="test" depends="compile-tests">
<testng classpath="${build}:${jarfiles}:${env.HADOOP}/lib/*" sourcedir="${test}">
<xmlfileset dir="." includes="testng.xml"/>
</testng>
</target>
<target name="javadoc">
<mkdir dir="${doc}"/>
<javadoc packagenames="edu.jhu.thrax.*"
classpath="${cli}"
sourcepath="${src}"
destdir="${doc}"
charset="utf-8"
>
<link href="http://java.sun.com/j2se/1.5.0/docs/api" />
<link href="http://commons.apache.org/cli/api-release" />
</javadoc>
</target>
</project>