forked from ppc64le/capi-rowcache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
53 lines (43 loc) · 1.86 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="capi-rowcache">
<property name="cassandra" value="cassandra" />
<property name="cassandra.bin" value="${cassandra}/build/classes/main" />
<property name="cassandra.build.lib" value="${cassandra}/lib" />
<property name="cassandra.build.dir.lib" value="${cassandra}/build/lib" />
<property name="capiblock.lib" value="lib/capiblock.jar" />
<property name="capi.rowcache.dir" value="dist" />
<property name="capi.rowcache.jar" value="dist/capi-rowcache.jar" />
<property name="capi.rowcache.build.dir" value="bin" />
<property name="debuglevel" value="source,lines,vars" />
<target depends="build-subprojects,build-project" name="build" />
<target name="clean">
<delete dir="${capi.rowcache.build.dir}" />
<delete dir="${capi.rowcache.dir}" />
</target>
<target name="cleanall" depends="clean">
<ant dir="${cassandra}" target="clean" />
</target>
<target name="build-subprojects">
<ant dir="${cassandra}" target="build" />
</target>
<path id="cassandra.classpath">
<fileset dir="${cassandra.build.lib}">
<include name="**/*.jar" />
<exclude name="**/*-sources.jar" />
</fileset>
<fileset dir="${cassandra.build.dir.lib}">
<include name="**/*.jar" />
<exclude name="**/*-sources.jar" />
</fileset>
</path>
<target name="build-project">
<mkdir dir="${capi.rowcache.build.dir}"/>
<javac debug="true" debuglevel="${debuglevel}" srcdir="src" destdir="${capi.rowcache.build.dir}">
<classpath refid="cassandra.classpath" />
<classpath path="${cassandra.bin}" />
<classpath path="${capiblock.lib}" />
</javac>
<jar destfile="${capi.rowcache.jar}" basedir="${capi.rowcache.build.dir}" />
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects" />
</project>