forked from wanpark/hadoop-hbase-streaming
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
42 lines (34 loc) · 1.14 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
<?xml version="1.0"?>
<project name="hadoop-hbase-streaming" default="jar">
<property environment="env"/>
<path id="classpath">
<pathelement location="classes"/>
<pathelement location="${env.HADOOP_HOME}/hadoop-0.17.2.1-core.jar"/>
<pathelement location="${env.HADOOP_HOME}/conf"/>
<pathelement location="${env.HBASE_HOME}/hbase-0.2.1.jar"/>
<pathelement location="${env.HBASE_HOME}/conf"/>
<fileset dir="${env.HADOOP_HOME}/lib">
<include name="**/*.jar" />
</fileset>
<pathelement location="${env.HADOOP_HOME}/contrib/streaming/hadoop-0.17.2.1-streaming.jar"/>
</path>
<target name="init">
<mkdir dir="classes"/>
<mkdir dir="build"/>
</target>
<target name="compile" depends="init">
<javac srcdir="src"
includes="**/*.java"
destdir="classes">
<classpath refid="classpath"/>
<compilerarg value="-Xlint:unchecked" />
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="build/hadoop-hbase-streaming.jar" basedir="classes" />
</target>
<target name="clean">
<delete dir="build"/>
<delete dir="classes"/>
</target>
</project>