forked from tjake/thrudb-java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
58 lines (48 loc) · 2.5 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
<project name="thrudex" default="thrudex" basedir=".">
<description>Thrudb Tutorial</description>
<property name="src" location="src" />
<property name="gen" location="gen-java" />
<property name="build" location="build" />
<property name="cpath" location="lib/libthrift.jar;lib/lucene-core-2.4.1.jar;lib/log4j-1.2.15.jar;lib/tokyocabinet.jar" />
<target name="init">
<tstamp />
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${gen}" destdir="${build}" classpath="${cpath}">
<compilerarg value="-Xlint:unchecked" />
</javac>
<javac srcdir="${src}" destdir="${build}" classpath="${cpath}:${gen}">
<compilerarg value="-Xlint:unchecked" />
</javac>
</target>
<target name="thrudb.jar" depends="compile">
<jar jarfile="thrudb.jar" basedir="${build}" />
</target>
<target name="clean">
<delete dir="${build}" />
<delete file="thrudb.jar" />
</target>
<target name="thrudex" depends="thrudb.jar">
<java classname="org.thrudb.thrudex.ThrudexServer" fork="true" spawn="true" maxmemory="128m">
<arg line="-f /Users/jake/projects/thrudb/tutorial/thrudex.conf" />
<classpath>
<pathelement location="thrudb.jar" />
<pathelement location="lib/libthrift.jar" />
<pathelement location="lib/log4j-1.2.15.jar" />
<pathelement location="lib/lucene-core-2.4.1.jar" />
</classpath>
</java>
</target>
<target name="thrudoc" depends="thrudb.jar">
<java classname="org.thrudb.thrudoc.ThrudocServer" fork="true" spawn="true" maxmemory="128m">
<arg line="-f /Users/jake/projects/thrudb/tutorial/thrudoc.conf" />
<classpath>
<pathelement location="thrudb.jar" />
<pathelement location="lib/libthrift.jar" />
<pathelement location="lib/log4j-1.2.15.jar" />
<pathelement location="lib/tokyocabinet.jar" />
</classpath>
</java>
</target>
</project>