-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (47 loc) · 1.52 KB
/
build.xml
File metadata and controls
55 lines (47 loc) · 1.52 KB
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
<project name="IndexedDatabase" default="all" basedir=".">
<!-- Default values for concurrent test -->
<property name="num.threads" value="10" />
<property name="num.columns" value="2" />
<property name="num.records" value="20" />
<property name="src" location="src"/>
<property name="bin" location="bin"/>
<property name="dist" location="dist"/>
<path id="classpath">
<fileset dir="deps" includes="**/*.jar"/>
<fileset dir="dist" includes="**/*.jar"/>
</path>
<target name="thrift">
<exec executable="thrift" dir="${src}">
<arg line="--gen java -out . indexing.thrift" />
</exec>
</target>
<target name="compile">
<mkdir dir="${bin}"/>
<mkdir dir="${dist}"/>
<javac srcdir="src" destdir="bin" classpathref="classpath"/>
<jar destfile="${dist}/indexed-database.jar" basedir="bin"/>
</target>
<target name="test">
<junit>
<formatter type="plain" usefile="false" />
<classpath refid="classpath" />
<test name="memdb.IndexedDatabaseSingleThreadedTest" />
</junit>
</target>
<target name="ctest">
<java classname="memdb.IndexedDatabaseConcurrentTest">
<classpath refid="classpath" />
<!-- Number of threads -->
<arg value="${num.threads}" />
<!-- Number of columns -->
<arg value="${num.columns}" />
<!-- Number of records -->
<arg value="${num.records}" />
</java>
</target>
<target name="clean">
<delete dir="${bin}"/>
<delete dir="${dist}"/>
</target>
<target name="all" depends="clean, thrift, compile, test, ctest" />
</project>