-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
84 lines (75 loc) · 2.68 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
<?xml version="1.0" encoding="UTF-8"?>
<!--For help visit url - http://ant.apache.org/manual-->
<project name="oo-kv-storage" default="jar" basedir=".">
<target name="init">
<!-- project settings go here -->
<property file="build.properties"/>
<property name="jar.filename" value="oo-kv-storage.jar"/>
<property name="debug" value="on"/>
<property name="local.path" value="./"/>
<property name="lib.path" value="${local.path}/lib"/>
<property name="gen.path" value="${local.path}/gen"/>
<property name="src.path" value="${local.path}/src"/>
<property name="test.path" value="${local.path}/test"/>
<property name="build.path" value="${local.path}/build"/>
<property name="build.compiler" value="javac1.6"/>
</target>
<!--cleanup -->
<target name="clean" depends="init">
<delete quiet="true">
<fileset dir="${build.path}" includes="**/*.jar"/>
</delete>
</target>
<!--create directory structure -->
<target name="dirCreate" depends="clean">
<delete dir="${build.path}"/>
<delete dir="${build.path}/classes"/>
<mkdir dir="${build.path}/classes"/>
</target>
<!--compile the source code into destdir-->
<target name="compile" depends="dirCreate">
<copy todir="${build.path}/classes" overwrite="true">
<fileset dir="${src.path}" includes="*.properties,*.xml,**/*.properties,**/*.xml"/>
<fileset dir="${test.path}" includes="*.properties,*.xml,**/*.properties,**/*.xml,**/*.txt"/>
</copy>
<javac destdir="${build.path}/classes" target="1.5" debug="${debug}">
<classpath>
<fileset dir="${lib.path}">
<include name="*.jar"/>
</fileset>
</classpath>
<src path="${gen.path}/"/>
<src path="${src.path}/"/>
<src path="${test.path}/"/>
<include name="**/*.java"/>
</javac>
</target>
<!--create the jar file-->
<target name="jar" depends="compile">
<jar destfile="${build.path}/${jar.filename}" basedir="${build.path}/classes"/>
</target>
<!-- create javadocs -->
<target name="docs" depends="init">
<javadoc
packagenames="com.othersonline.*"
destdir="doc/api"
author="true"
version="true"
use="true">
<fileset dir="${gen.path}" includes="**/*.java"/>
<fileset dir="${src.path}" includes="**/*.java"/>
<classpath>
<fileset dir="${lib.path}">
<include name="*.jar"/>
</fileset>
</classpath>
<doctitle><![CDATA[<h1>oo-kv-storage</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2009 OthersOnline/Sam Tingleff.</i>]]></bottom>
<link href="http://java.sun.com/javase/6/docs/api/"/>
</javadoc>
</target>
<!--run ant-->
<target name="all" depends="init">
<antcall target="jar"/>
</target>
</project>