forked from brettlangdon/flume-kestrel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
40 lines (35 loc) · 1.38 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
<?xml version="1.0"?>
<project name="flume-kestrel" default="jar">
<property name="javac.debug" value="on"/>
<property name="flume.base" value="apache-flume-1.4.0-bin/"/>
<path id="classpath">
<!-- in case we are running in dev env -->
<pathelement location="${flume.base}/build/classes"/>
<fileset dir="${flume.base}/lib">
<include name="**/google-collect*.jar"/>
<include name="**/guava*.jar"/>
<include name="**/log4j-*.jar"/>
<include name="**/slf4j-*.jar"/>
<include name="flume-*.jar"/>
</fileset>
<!-- in case we are running in release env -->
<fileset dir="lib">
<include name="xmemcached*.jar"/>
</fileset>
<pathelement location="${flume.base}/lib"/>
<pathelement location="lib"/>
</path>
<target name="jar">
<mkdir dir="build"/>
<mkdir dir="build/classes"/>
<javac source="1.6" target="1.6" srcdir="./src/com/blangdon/flume/kestrel" destdir="build/classes" debug="${javac.debug}">
<classpath refid="classpath"/>
</javac>
<jar jarfile="flume-kestrel.jar" basedir="build/classes"/>
</target>
<target name="clean">
<echo message="Cleaning generated files and stuff"/>
<delete dir="build"/>
<delete file="flume-kestrel.jar"/>
</target>
</project>