forked from jmaassen/ConstellationOnYarn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·71 lines (58 loc) · 1.98 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
<project name="YARNTEST" default="all" basedir=".">
<property environment="env"/>
<property name="jar" value="ConstellationOnYarn.jar" />
<property name="hadoopdir" value="${env.HADOOP_HOME}/share/hadoop" />
<property name="srcdir" value="./src" />
<property name="builddir" value="./build" />
<property name="distdir" value="./dist" />
<property name="libdir" value="./lib" />
<path id="lib.jars">
<fileset dir="${hadoopdir}/common">
<include name="*.jar" />
</fileset>
<fileset dir="${hadoopdir}/common/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${hadoopdir}/yarn">
<include name="*.jar" />
</fileset>
<fileset dir="${libdir}">
<include name="*.jar" />
</fileset>
</path>
<!-- Internal target - Preparations for building. -->
<target name="prepare">
<mkdir dir="${distdir}" />
<mkdir dir="${builddir}" />
</target>
<target name="compile" depends="prepare">
<javac includeantruntime="false" destdir="${builddir}" srcdir="${srcdir}" debug="true" includes="**/*.java">
<classpath refid="lib.jars" />
</javac>
</target>
<!-- Internal target - Builds the JAR file -->
<target name="jar" depends="compile">
<delete failonerror="false" file="${distdir}/${jar}" />
<jar jarfile="${distdir}/${jar}" basedir="${builddir}" includes="**">
<manifest>
<attribute name="Built-By" value="${user.name}" />
</manifest>
</jar>
</target>
<target name="install" depends="jar">
<copy file="log4j.properties" todir="${distdir}"/>
<copy todir="${distdir}">
<fileset dir="${libdir}">
<include name="*.jar" />
</fileset>
</copy>
</target>
<target name="all" depends="clean,prepare,compile,jar,install">
</target>
<!-- remove all generated code -->
<target name="clean" description="Removes the ${distdir} directory">
<delete failonerror="false" dir="./bin" />
<delete failonerror="false" dir="${builddir}" />
<delete failonerror="false" dir="${distdir}" />
</target>
</project>