-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.xml
124 lines (110 loc) · 4.19 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<project name="hbase-rdf" default="all" basedir=".">
<!-- Property file for build.xml -->
<property file="build.properties"/>
<!-- all tests -->
<target name="all" depends="init, compile-src-classes, create-src-pkg, compile-test-classes, create-test-pkg, compile-example-classes, create-example-pkg"
description="Compile sources and tests" />
<!-- clean classes -->
<target name="clean" description="remove all contents to ensure a clean build">
<delete dir="${hbaserdf.build.dir}" />
<delete dir="${hbaserdf.build.test}" />
<delete dir="${hbaserdf.build.examples}" />
</target>
<target name="init">
<!-- Create the time stamp -->
<mkdir dir="${hbaserdf.build.dir}" />
<mkdir dir="${hbaserdf.build.test}" />
<mkdir dir="${hbaserdf.build.examples}" />
<tstamp/>
</target>
<!-- compile tests -->
<target name="compile-test-classes" depends="init, compile-src-classes, create-src-pkg"
description="Compile the test source files under ${hbaserdf.src.test}">
<javac
srcdir="${hbaserdf.src.test}"
destdir="${hbaserdf.build.test}" >
<classpath refid="classpath" />
</javac>
</target>
<!-- compile examples; includes samples, Sp2Bench and LUBM -->
<target name="compile-example-classes" depends="init, compile-src-classes, create-src-pkg"
description="Compile the example files under ${hbaserdf.src.examples}">
<javac
srcdir="${hbaserdf.src.examples}"
destdir="${hbaserdf.build.examples}" >
<classpath refid="classpath" />
</javac>
</target>
<!-- compile src files -->
<target name="compile-src-classes"
depends="init"
description="Compile the source tree into class files under ${hbaserdf.build.dir}">
<javac
srcdir="${hbaserdf.src.dir}"
destdir="${hbaserdf.build.dir}"
debug="true"
>
<classpath refid="classpath"/>
</javac>
</target>
<!-- create the source package -->
<target name="create-src-pkg"
depends="init, compile-src-classes"
description="Create the source package based on the source files">
<jar
destfile="${lib.dir}/jena-hbaserdf.jar"
basedir="${hbaserdf.build.dir}">
</jar>
</target>
<!-- create the test package -->
<target name="create-test-pkg"
depends="init, compile-test-classes"
description="Create the test package based on the test files">
<jar
destfile="${lib.dir}/jena-hbaserdf-test.jar"
basedir="${hbaserdf.build.test}">
</jar>
</target>
<!-- create the example package -->
<target name="create-example-pkg"
depends="init, compile-example-classes"
description="Create the example package based on the example files">
<jar
destfile="${lib.dir}/jena-hbaserdf-example.jar"
basedir="${hbaserdf.build.examples}">
</jar>
</target>
<!-- Classpaths -->
<path id="classpath">
<fileset dir="${lib.dir}" includes="*.jar" />
</path>
<target name="load-sp2b" depends="create-src-pkg, create-example-pkg, clean">
<java classname="${load.sp2b}" maxmemory="1g" fork="yes">
<classpath refid="classpath" />
<jvmarg value="-XX:-UseGCOverheadLimit" />
<jvmarg value="-Xms1g" />
<jvmarg value="-XX:+UseConcMarkSweepGC" />
<arg line="${test.numOfRuns} ${store.info} --format=${store.format} ${graph.name.sp2b} ${sp2b.input}"/>
</java>
</target>
<target name="run-sp2b" depends="create-src-pkg, create-example-pkg, clean">
<java classname="${run.sp2b}" maxmemory="1g" fork="yes">
<classpath refid="classpath" />
<jvmarg value="-XX:-UseGCOverheadLimit" />
<jvmarg value="-Xms1g" />
<jvmarg value="-XX:+UseConcMarkSweepGC" />
<arg line="${store.info} ${graph.name.sp2b} ${test.numOfRuns}"/>
</java>
</target>
<target name="run-lubm" depends="create-src-pkg, create-example-pkg, clean">
<java classname="${run.lubm}" maxmemory="2g" fork="yes">
<classpath refid="classpath" />
<jvmarg value="-XX:-UseGCOverheadLimit" />
<jvmarg value="-Xms1g" />
<jvmarg value="-XX:+UseConcMarkSweepGC" />
<jvmarg value="-XX:PermSize=256m" />
<jvmarg value="-XX:MaxPermSize=512m" />
<arg line="${test.numOfRuns} ${store.info} --format=${store.format} ${graph.name.lubm} ${lubm.input} ${test.skippedqueries}"/>
</java>
</target>
</project>