-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.xml
61 lines (48 loc) · 1.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
<project name="Caduceus" basedir="." default="distr">
<property name="Name" value="Caduceus"/>
<property name="name" value="Caduceus"/>
<property name="version" value="0.1.0"/>
<property name="final.name" value="${name}-${version}"/>
<property name="src.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="build.dir" value="build"/>
<property name="jar.dir" value="${build.dir}"/>
<property name="build.lib.dir" value="${build.dir}/lib"/>
<property name="main-class" value="tv.floe.caduceus.hadoop.movingaverage.MovingAverageJob"/>
<property name="tmp.dir" value="tmp"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${tmp.dir}"/>
</target>
<target name="compile">
<mkdir dir="${tmp.dir}"/>
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${tmp.dir}" debug="on"
classpathref="classpath"/>
</target>
<target name="distr" depends="jar">
<mkdir dir="${build.lib.dir}"/>
<copy todir="${build.lib.dir}">
<fileset dir="${lib.dir}"/>
</copy>
<!-- <copy todir="${build.dir}/bin">
<fileset dir="bin"/>
</copy>-->
<delete dir="${tmp.dir}"/>
</target>
<target name="jar" depends="clean, compile">
<jar destfile="${build.dir}/${final.name}.jar" basedir="${tmp.dir}">
<!-- <manifest>
<attribute name="Main-Class" value="${main-class}"/>
<attribute name="Class-Path" value="classpath"/>
</manifest>
-->
<fileset dir=".">
<include name="**/${lib.dir}/**" />
</fileset>
</jar>
</target>
</project>