-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·139 lines (114 loc) · 4.39 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<project name="bdsim" default="run-server" basedir=".">
<property name="src" location="${basedir}/src" />
<property name="test" location="${basedir}/test" />
<property name="bin" location="${basedir}/bin" />
<property name="doc" location="${basedir}/doc" />
<property name="lib" location="${basedir}/lib" />
<property name="www" location="/pro/web/web/people/wpijewsk/bdsim" />
<property name="ta-test" location="/course/cs127/asgn/new_asgn/projects/btree/ta-test" />
<property name="log4j" location="${lib}/log4j-1.2.14.jar" />
<property name="server.class" value="bdsim.server.main.BDSimulator" />
<property name="client.class" value="bdsim.client.BDClient" />
<property name="test.class" value="bdsim.server.system.index.BDBPlusTreeIndexTATest" />
<property name="student-test.class" value="bdsim.server.system.index.BDBPlusTreeIndexStudentTest" />
<property name="file" value="test/files/OneEmptyTable.xml" />
<path id="all-path">
<pathelement path="${src}" />
<pathelement path="${test}" />
<pathelement path="${bin}" />
<pathelement path="${log4j}" />
<pathelement path="${jogl}" />
</path>
<target name="javadoc-web">
<javadoc access="private" packagenames="bdsim.*" sourcepath="src" destdir="${www}/doc" author="true" version="true" use="true">
<classpath refid="all-path" />
</javadoc>
<exec dir="${www}" executable="webupdate" />
</target>
<target name="clean-web">
<delete dir="${www}/doc" />
<exec dir="${www}" executable="webupdate" />
</target>
<target name="javadoc">
<javadoc access="private" packagenames="bdsim.*" sourcepath="src" destdir="${doc}" author="true" version="true" use="true">
<classpath refid="all-path" />
</javadoc>
</target>
<path id="classpath.test">
<pathelement location="/course/cs127/lib/junit.jar" />
<path refid="all-path" />
</path>
<target name="clean">
<delete dir="${bin}" />
<delete dir="${doc}" />
</target>
<target name="clean-doc">
<delete dir="${doc}" />
</target>
<target name="compile">
<mkdir dir="${bin}" />
<javac srcdir="${basedir}/src" destdir="${basedir}/bin" includeantruntime="false" debug="true" debuglevel="lines,vars,source">
<classpath refid="all-path" />
</javac>
</target>
<target name="compile-student-test">
<mkdir dir="${bin}" />
<javac srcdir="${src}:${test}" destdir="${bin}" includeantruntime="false" debug="true" debuglevel="lines,vars,source">
<classpath refid="classpath.test" />
</javac>
</target>
<target name="compile-ta-test">
<mkdir dir="${bin}" />
<javac srcdir="${src}:${test}:${ta-test}" destdir="${bin}" includeantruntime="false" debug="true" debuglevel="lines,vars,source">
<classpath refid="classpath.test" />
</javac>
</target>
<target name="run-client" depends="compile">
<java fork="true" classname="${client.class}">
<classpath refid="all-path" />
</java>
</target>
<target name="run" depends="compile">
<java fork="true" classname="${server.class}">
<classpath refid="all-path" />
<arg value="${file}"/>
</java>
</target>
<target name="run-server" depends="compile">
<java fork="true" classname="${server.class}">
<classpath refid="all-path" />
<sysproperty key="pavlo.testFile" value="${pavlo.testFile}"/>
<sysproperty key="pavlo.checkTree" value="${pavlo.checkTree}"/>
<sysproperty key="pavlo.outputDiskOperations" value="${pavlo.outputDiskOperations}"/>
</java>
</target>
<target name="run-server-plain" depends="compile">
<java fork="true" classname="${server.class}">
<classpath refid="all-path" />
</java>
</target>
<target name="test-btree" depends="compile">
<java fork="true" classname="bdsim.server.system.index.BDTATester">
<classpath refid="all-path" />
</java>
</target>
<target name="student-test" depends="compile-student-test">
<junit>
<classpath refid="classpath.test" />
<formatter type="plain" usefile="false" />
<test name="${student-test.class}" />
</junit>
</target>
<target name="test" depends="compile-ta-test">
<junit>
<classpath refid="classpath.test" />
<formatter type="plain" usefile="false" />
<test name="${test.class}" />
</junit>
</target>
<target name="run-log" depends="compile">
<java fork="true" classname="bdsim.server.system.log.BDLogTester">
<classpath refid="all-path" />
</java>
</target>
</project>