forked from carloscm/cassandra-commitlog-extract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·85 lines (75 loc) · 2.71 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" ?>
<project name="Groupalia ETL Agent" default="default">
<property name="lib.home" value="lib"/>
<property name="hector.dir" location="lib/hector-core-1.0-3"/>
<property name="apache-commons.dir" location="lib/apache-commons"/>
<property name="jackson.dir" location="lib/jackson-2.0.0"/>
<property name="jdbc.dir" location="lib/jdbc"/>
<property name="opencsv.dir" location="lib/opencsv-2.4"/>
<property name="build.dir" location="build/"/>
<property name="src.dir" location="agent"/>
<path id="project.classpath">
<fileset dir="${hector.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${apache-commons.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${jackson.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${jdbc.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${opencsv.dir}">
<include name="*.jar"/>
</fileset>
<pathelement location="${build.dir}"/>
</path>
<path id="libs.project">
<fileset dir="${hector.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${apache-commons.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${jackson.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${jdbc.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${opencsv.dir}">
<include name="*.jar"/>
</fileset>
<pathelement location="${build.dir}"/>
</path>
<!-- create a property containing all .jar files, prefix lib/, and seperated with a space -->
<pathconvert property="libs.project" pathsep=":">
<mapper>
<chainedmapper>
<!-- remove absolute path -->
<flattenmapper />
<!-- add lib/ prefix -->
<globmapper from="*" to="*" />
</chainedmapper>
</mapper>
<path>
<!-- lib.home contains all jar files, in several subdirectories -->
<fileset dir="${lib.home}">
<include name="**/*.jar" />
</fileset>
</path>
</pathconvert>
<target name="default" depends="clean,build"/>
<target name="clean">
<delete failonerror="false" dir="${build.dir}"/>
</target>
<target name="build">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" debug="true" includeAntRuntime="true" target="1.6" verbose="yes">
<compilerarg value="-Xlint"/>
<classpath refid="project.classpath"/>
</javac>
</target>
</project>