forked from hyperic/hadoop-collectd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
45 lines (39 loc) · 1.43 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
<project name="hadoop-collectd" default="dist" basedir=".">
<property file="${user.home}/.hadoop-collectd-build.properties"/>
<property environment="env"/>
<property name="hadoop"
value="${basedir}/../../../hadoop-core-trunk"/>
<property name="hadoop.jar"
location="${hadoop}/build/hadoop-metrics-0.21.0-dev.jar"/>
<property name="logging.jar"
location="${hadoop}/build/ivy/lib/Hadoop/common/commons-logging-1.0.4.jar"/>
<property name="collectd.jar"
location="${basedir}/../jcollectd/target/lib/collectd.jar"/>
<path id="hd.classpath">
<path location="${hadoop.jar}"/>
<path location="${collectd.jar}"/>
<path location="${logging.jar}"/>
</path>
<target name="init">
<mkdir dir="${basedir}/target/classes"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${basedir}/src/main/java"
destdir="${basedir}/target/classes"
debug="true"
source="1.6"
target="1.6"
classpathref="hd.classpath"/>
</target>
<target name="dist" depends="compile">
<jar jarfile="${basedir}/target/hadoop-collectd.jar">
<fileset dir="${basedir}/src/main/resources" includes="*.properties"/>
<fileset dir="${basedir}/target/classes" includes="**/*.class">
<exclude name="**/test/*"/>
</fileset>
</jar>
</target>
<target name="clean">
<delete dir="target"/>
</target>
</project>