-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
29 lines (29 loc) · 857 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="jobcontrol" default="jar">
<property name="hadoop.home" value="/opt/hadoop"/>
<path id="hadoop.classpath">
<fileset dir="${hadoop.home}">
<include name="*.jar"/>
</fileset>
<fileset dir="${hadoop.home}/lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="target"/>
<mkdir dir="target/classes"/>
</target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="target"/>
</delete>
</target>
<target name="compile" depends="init">
<javac srcdir="src/" destdir="target/classes" debug="true">
<classpath refid="hadoop.classpath" />
</javac>
</target>
<target name="jar" depends="compile">
<jar basedir="target/classes" destfile="target/keywords.jar" />
</target>
</project>