Mercurial > hg > blitz_condensed
comparison build.xml @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children | 47767be3a265 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 <project name="Blitz JavaSpaces 2.0 FCS" default="init"> | |
2 <description> | |
3 Main build file for Blitz space implementation running on Db-Java | |
4 </description> | |
5 <!-- set global properties for this build --> | |
6 <property name="src" location="src"/> | |
7 <property name="testsrc" location="test"/> | |
8 <property name="installer_base" location="installer"/> | |
9 <property name="build" location="build"/> | |
10 <property name="installer_build" location="installer_build"/> | |
11 <property name="db_root" location="dbjava/je-3.2.68/"/> | |
12 <property name="bdb" location="dbjava/je.jar"/> | |
13 <property name="jini_root" location="/Users/dan/jini/jini2_1"/> | |
14 <property name="jdk_root" location="/usr/local/java"/> | |
15 <property name="stats" location="examples/statsclient"/> | |
16 <property name="statsbuild" location="examples/statsclient"/> | |
17 <property name="hello" location="examples/helloworld"/> | |
18 <property name="hellobuild" location="examples/"/> | |
19 <property name="sizer" location="examples/entrysizer"/> | |
20 <property name="sizerbuild" location="examples/"/> | |
21 <property name="lib" location="lib"/> | |
22 <property name="otherlib" location="thirdpartylib"/> | |
23 <property name="release" location="release"/> | |
24 <property name="config" location="config"/> | |
25 <property name="examples" location="examples"/> | |
26 | |
27 <taskdef name="classdepandjar" | |
28 classname="org.jini.project.example.jade.tools.ClassDepAndJarTask" | |
29 classpath="${basedir}/ant_addon/classdepandjar.jar:${jini_root}/lib/tools.jar"/> | |
30 | |
31 <target name="init"> | |
32 <!-- Create the time stamp --> | |
33 <tstamp/> | |
34 <!-- Create the build directory structure used by compile --> | |
35 <mkdir dir="${build}"/> | |
36 <mkdir dir="dbfiles"/> | |
37 <mkdir dir="docs/javadocs"/> | |
38 <mkdir dir="${lib}"/> | |
39 </target> | |
40 | |
41 <target name="clean" | |
42 description="clean up" > | |
43 <delete> | |
44 <fileset dir="examples"> | |
45 <exclude name="**/*.java"/> | |
46 </fileset> | |
47 </delete> | |
48 <delete dir="${build}"/> | |
49 <delete dir="dbfiles"/> | |
50 <delete dir="${lib}"/> | |
51 <delete dir="installer_build"/> | |
52 <delete file="installer.jar"/> | |
53 </target> | |
54 | |
55 <target name="all" | |
56 depends="pristine,compile,javadoc,jars,testclients"/> | |
57 | |
58 <target name="pristine" description="Restore to pristine build" | |
59 depends="clean"> | |
60 <delete dir="docs/javadocs"/> | |
61 <delete dir="${release}"/> | |
62 </target> | |
63 | |
64 <path id="allclasses"> | |
65 <pathelement location="${build}"/> | |
66 <pathelement location="${jini_root}/lib/jsk-platform.jar"/> | |
67 <pathelement location="${jini_root}/lib/jsk-lib.jar"/> | |
68 <pathelement location="${jini_root}/lib/start.jar"/> | |
69 <pathelement location="${jini_root}/lib/sun-util.jar"/> | |
70 <pathelement location="${otherlib}/backport-util-concurrent.jar"/> | |
71 <pathelement location="${otherlib}/mina-core-1.0.1.jar"/> | |
72 <pathelement location="${otherlib}/slf4j-api-1.2.jar"/> | |
73 <pathelement location="${otherlib}/slf4j-jdk14-1.2.jar"/> | |
74 <pathelement location="${otherlib}/serviceui-1.1.jar"/> | |
75 <pathelement location="${bdb}"/> | |
76 </path> | |
77 | |
78 <target name="compile" depends="init" | |
79 description="compile the source " > | |
80 <!-- Compile the java code from ${src} into ${build} --> | |
81 <javac destdir="${build}" debug="true" | |
82 source="1.4" | |
83 target="1.4" | |
84 debuglevel="lines,vars,source" | |
85 classpathref="allclasses"> | |
86 <src path="${src}"/> | |
87 <src path="${testsrc}"/> | |
88 </javac> | |
89 <rmic classname="org.dancres.blitz.remote.BlitzServiceImpl" | |
90 base="${build}" | |
91 classpathref="allclasses" | |
92 stubversion="1.2"/> | |
93 <copy todir="${build}/org/dancres/blitz/entry" | |
94 file="${src}/org/dancres/blitz/entry/filters.properties"/> | |
95 <copy todir="${build}/org/dancres/blitz/lease" | |
96 file="${src}/org/dancres/blitz/lease/handlers.properties"/> | |
97 <copy todir="${build}/org/dancres/blitz/disk" | |
98 file="${src}/org/dancres/blitz/disk/db.properties"/> | |
99 <copy todir="${build}/org/dancres/blitz/serviceui" | |
100 file="${src}/org/dancres/blitz/serviceui/blitz.htm"/> | |
101 <copy todir="${build}/org/dancres/blitz/tools/dash/images"> | |
102 <fileset dir="${src}/org/dancres/blitz/tools/dash/images"> | |
103 </fileset> | |
104 </copy> | |
105 </target> | |
106 | |
107 <target name="installer" depends="jars"> | |
108 <!-- Installer rule, not ready yet - sorting out source code | |
109 | |
110 <delete dir="${installer_build}"/> | |
111 <mkdir dir="${installer_build}"/> | |
112 <javac srcdir="${installer_base}/com/incax/install/blitz" destdir="${installer_build}" debug="true" | |
113 source="1.4" | |
114 target="1.4" | |
115 debuglevel="lines,vars,source" | |
116 classpathref="allclasses"/> | |
117 <copy todir="${installer_build}/resources"> | |
118 <fileset dir="${installer_base}/resources"> | |
119 </fileset> | |
120 </copy> | |
121 <copy todir="${installer_build}/resources/extract/examples"> | |
122 <fileset dir="examples"> | |
123 </fileset> | |
124 </copy> | |
125 <copy todir="${installer_build}/resources/extract/lib"> | |
126 <fileset dir="${lib}"> | |
127 </fileset> | |
128 </copy> | |
129 <copy todir="${installer_build}/resources/extract/thirdpartylib"> | |
130 <fileset dir="${otherlib}"> | |
131 </fileset> | |
132 </copy> | |
133 <copy file="${bdb}" todir="${installer_build}/resources/extract/dbjava"> | |
134 </copy> | |
135 <jar destfile="installer.jar" basedir="${installer_build}" | |
136 manifest="${installer_base}/META-INF/MANIFEST.MF"/> | |
137 | |
138 --> | |
139 | |
140 </target> | |
141 | |
142 <target name="release" | |
143 description="build the components into directories for release"> | |
144 <antcall target="all"/> | |
145 <antcall target="installer"/> | |
146 <mkdir dir="${release}"/> | |
147 <mkdir dir="${release}/blitz_user"/> | |
148 <mkdir dir="${release}/blitz_developer"/> | |
149 <mkdir dir="${release}/alldoc"/> | |
150 | |
151 <!-- Installer not included, in transition to the new version | |
152 | |
153 <copy todir="${release}" file="installer.jar"/> | |
154 | |
155 --> | |
156 | |
157 <copy todir="${release}/blitz_user/docs"> | |
158 <fileset dir="docs"> | |
159 <exclude name="javadocs/**"/> | |
160 </fileset> | |
161 </copy> | |
162 <copy todir="${release}/blitz_developer/docs"> | |
163 <fileset dir="docs"> | |
164 <exclude name="javadocs/**"/> | |
165 </fileset> | |
166 </copy> | |
167 <copy todir="${release}/alldoc/docs"> | |
168 <fileset dir="docs"/> | |
169 </copy> | |
170 <copy todir="${release}/blitz_user"> | |
171 <fileset dir="${basedir}"> | |
172 <include name="index.html"/> | |
173 </fileset> | |
174 </copy> | |
175 <copy todir="${release}/blitz_developer"> | |
176 <fileset dir="${basedir}"> | |
177 <include name="index.html"/> | |
178 </fileset> | |
179 </copy> | |
180 <copy todir="${release}/alldoc"> | |
181 <fileset dir="${basedir}"> | |
182 <include name="index.html"/> | |
183 </fileset> | |
184 </copy> | |
185 <copy todir="${release}/blitz_developer"> | |
186 <fileset dir="${basedir}"> | |
187 <include name="ChangeLog"/> | |
188 </fileset> | |
189 </copy> | |
190 <copy todir="${release}/blitz_user"> | |
191 <fileset dir="${basedir}"> | |
192 <include name="ChangeLog"/> | |
193 </fileset> | |
194 </copy> | |
195 <copy todir="${release}/alldoc"> | |
196 <fileset dir="${basedir}"> | |
197 <include name="ChangeLog"/> | |
198 </fileset> | |
199 </copy> | |
200 <copy todir="${release}/blitz_user/lib"> | |
201 <fileset dir="${lib}"/> | |
202 </copy> | |
203 <copy todir="${release}/blitz_user/thirdpartylib"> | |
204 <fileset dir="${otherlib}"/> | |
205 </copy> | |
206 <copy todir="${release}/blitz_user/config"> | |
207 <fileset dir="${config}"/> | |
208 </copy> | |
209 <copy todir="${release}/blitz_user/examples"> | |
210 <fileset dir="${examples}"/> | |
211 </copy> | |
212 <copy file="${bdb}" todir="${release}/blitz_user/dbjava"> | |
213 </copy> | |
214 <copy file="${bdb}" todir="${release}/blitz_developer/dbjava"> | |
215 </copy> | |
216 <antcall target="clean"/> | |
217 <copy todir="${release}/blitz_developer"> | |
218 <fileset dir="${basedir}"> | |
219 <include name="build.xml"/> | |
220 </fileset> | |
221 </copy> | |
222 <copy todir="${release}/blitz_user"> | |
223 <fileset dir="${basedir}"> | |
224 <include name="build.xml"/> | |
225 </fileset> | |
226 </copy> | |
227 <copy todir="${release}/blitz_developer/ant_addon"> | |
228 <fileset dir="ant_addon"/> | |
229 </copy> | |
230 <copy todir="${release}/blitz_developer/config"> | |
231 <fileset dir="${config}"/> | |
232 </copy> | |
233 <copy todir="${release}/blitz_developer/examples"> | |
234 <fileset dir="${examples}"/> | |
235 </copy> | |
236 <copy todir="${release}/blitz_developer/src"> | |
237 <fileset dir="${src}"> | |
238 </fileset> | |
239 </copy> | |
240 <copy todir="${release}/blitz_developer/thirdpartylib"> | |
241 <fileset dir="${otherlib}"/> | |
242 </copy> | |
243 <copy todir="${release}/blitz_developer/test"> | |
244 <fileset dir="${testsrc}"> | |
245 </fileset> | |
246 </copy> | |
247 <antcall target="compile"/> | |
248 </target> | |
249 | |
250 <target name="jars" depends="serverjar,dljar,prefgen,statsjar,dashjar,serviceuijar"/> | |
251 | |
252 <target name="serviceuijar" depends="compile" description="generate dashboard serviceui jar"> | |
253 <mkdir dir="${lib}"/> | |
254 <jar jarfile="${lib}/blitzui.jar" basedir="${build}" | |
255 includes="org/dancres/jini/**,org/dancres/blitz/tools/dash/**,org/dancres/blitz/serviceui/**, org/dancres/blitz/remote/StatsAdmin.class, org/dancres/blitz/remote/BlitzAdmin.class, org/dancres/blitz/stats/**"/> | |
256 </target> | |
257 | |
258 <target name="dashjar" depends="compile" description="generate dashboard jar"> | |
259 <mkdir dir="${lib}"/> | |
260 <jar jarfile="${lib}/dashboard.jar" basedir="${build}" | |
261 includes="org/dancres/jini/**,org/dancres/blitz/tools/dash/**"/> | |
262 <java jar="${jini_root}/lib/preferredlistgen.jar" fork="true"> | |
263 <arg line="-cp"/> | |
264 <arg path="${jini_root}/lib/jsk-platform.jar"/> | |
265 <arg line="-jar"/> | |
266 <arg path="${lib}/dashboard.jar"/> | |
267 <arg line="-api net/jini/-"/> | |
268 <arg line="-default true"/> | |
269 <arg line="-api com/sun/jini/admin/-"/> | |
270 <arg line="-api com/sun/jini/resource/-"/> | |
271 <arg line="-api com/sun/jini/start/-"/> | |
272 </java> | |
273 </target> | |
274 | |
275 <target name="toolsjar" depends="compile" description="generate jar containing generic tools"> | |
276 <mkdir dir="${lib}"/> | |
277 <classdepandjar jarfile="${lib}/blitz-tools.jar" | |
278 files="true"> | |
279 <classpath refid="allclasses"/> | |
280 <in name="org.dancres"/> | |
281 <in name="org.jini"/> | |
282 <out name="com.sun.jini"/> | |
283 <out name="net.jini"/> | |
284 <topclass name="org.dancres.jini.tools.DumpRegistry"/> | |
285 </classdepandjar> | |
286 </target> | |
287 | |
288 <target name="dljar" depends="compile" description="generate blitz-dl.jar"> | |
289 <mkdir dir="${lib}"/> | |
290 <classdepandjar jarfile="${lib}/blitz-dl.jar" | |
291 files="true" manifest="${basedir}/MANIFEST.MF"> | |
292 <classpath refid="allclasses"/> | |
293 <in name="com.go"/> | |
294 <in name="EDU.oswego"/> | |
295 <in name="edu.emory"/> | |
296 <in name="org.dancres"/> | |
297 <in name="net.jini"/> | |
298 <in name="org.jini"/> | |
299 <in name="com.sun.jini"/> | |
300 <out name="net.jini.core"/> | |
301 <out name="net.jini.activation"/> | |
302 <out name="net.jini.config"/> | |
303 <out name="net.jini.constraint"/> | |
304 <out name="net.jini.export"/> | |
305 <out name="net.jini.id"/> | |
306 <out name="net.jini.iiop"/> | |
307 <out name="net.jini.io"/> | |
308 <out name="net.jini.jeri"/> | |
309 <out name="net.jini.jrmp"/> | |
310 <out name="net.jini.loader"/> | |
311 <out name="net.jini.security"/> | |
312 <out name="net.jini.url"/> | |
313 <out name="com.sun.jini.discovery"/> | |
314 <topclass name="org.dancres.blitz.remote.BlitzProxy"/> | |
315 <topclass name="org.dancres.blitz.remote.BlitzServiceImpl_Stub"/> | |
316 <topclass name="org.dancres.blitz.remote.LeaseImpl"/> | |
317 <topclass name="org.dancres.blitz.notify.SpaceNotifyUID"/> | |
318 <topclass name="org.dancres.blitz.remote.txn.SpaceTxnUID"/> | |
319 <topclass name="org.dancres.blitz.remote.txn.TxnMgrProxy"/> | |
320 <topclass name="org.dancres.blitz.notify.AvailabilityEventImpl"/> | |
321 <topclass name="org.dancres.blitz.SpaceEntryUID"/> | |
322 <topclass name="org.dancres.blitz.oid.UIDImpl"/> | |
323 <topclass name="org.dancres.blitz.remote.AdminProxy"/> | |
324 <topclass name="org.dancres.blitz.remote.TxnParticipantProxy"/> | |
325 <topclass name="org.dancres.blitz.remote.ProxyVerifier"/> | |
326 <topclass name="org.dancres.blitz.remote.ConstrainableTxnParticipantProxy"/> | |
327 <topclass name="org.dancres.blitz.remote.ConstrainableBlitzProxy"/> | |
328 <topclass name="org.dancres.blitz.remote.ConstrainableLeaseImpl"/> | |
329 <topclass name="org.dancres.blitz.remote.ConstrainableAdminProxy"/> | |
330 <topclass name="org.dancres.blitz.remote.debug.TimingInvocationHandler"/> | |
331 <topclass name="org.dancres.blitz.remote.view.EntryViewUID"/> | |
332 </classdepandjar> | |
333 </target> | |
334 | |
335 <target name="prefgen"> | |
336 <java jar="/Users/dan/jini/jini2_1/lib/preferredlistgen.jar" | |
337 fork="true"> | |
338 <arg line="-cp"/> | |
339 <arg path="${otherlib}/backport-util-concurrent50.jar:${jini_root}/lib/jsk-platform.jar:${jini_root}/lib/jsk-lib.jar:${jini_root}/lib/outrigger.jar"/> | |
340 <arg line="-jar"/> | |
341 <arg path="${lib}/blitz-dl.jar"/> | |
342 <arg line="-default false"/> | |
343 <arg line="-api org/dancres/blitz/remote/BlitzAdmin.class"/> | |
344 <arg line="-api org/dancres/blitz/remote/StatsAdmin.class"/> | |
345 <arg line="-api org/dancres/blitz/stats/*"/> | |
346 <arg line="-api net/jini/-"/> | |
347 <arg line="-api com/sun/jini/outrigger/-"/> | |
348 <arg line="-api com/sun/jini/admin/-"/> | |
349 <arg line="-api com/sun/jini/resource/-"/> | |
350 <arg line="-api com/sun/jini/start/-"/> | |
351 <arg line="-api com/sun/jini/proxy/-"/> | |
352 </java> | |
353 </target> | |
354 | |
355 <target name="serverjar" depends="compile" | |
356 description="generate blitz server .jar" > | |
357 <mkdir dir="${lib}"/> | |
358 <jar jarfile="${lib}/blitz.jar" basedir="${build}"/> | |
359 </target> | |
360 | |
361 <target name="statsjar" depends="compile" | |
362 description="generate stats.jar for clients accessing StatsAdmin"> | |
363 <mkdir dir="${lib}"/> | |
364 <jar jarfile="${lib}/stats.jar" basedir="${build}" includes="org/dancres/blitz/stats/**,org/dancres/blitz/remote/StatsAdmin.class,org/dancres/blitz/remote/BlitzAdmin.class"/> | |
365 </target> | |
366 | |
367 <target name="testclients" depends="statsclient,helloworld,entrysizer"/> | |
368 | |
369 <target name="statsclient" depends="serverjar,statsjar" | |
370 description="Build a test client for the stats interface"> | |
371 <mkdir dir="${statsbuild}"/> | |
372 <javac srcdir="${stats}" destdir="${statsbuild}" debug="true" | |
373 target="1.4" | |
374 source="1.4" | |
375 debuglevel="lines,vars,source" | |
376 classpath="${jini_root}/lib/jsk-platform.jar:${jini_root}/lib/jini-ext.jar:${jini_root}/lib/start.jar:${jini_root}/lib/sun-util.jar:${lib}/stats.jar"/> | |
377 </target> | |
378 | |
379 <target name="helloworld" depends="serverjar" | |
380 description="Build a test client for Blitz"> | |
381 <mkdir dir="${hellobuild}"/> | |
382 <javac srcdir="${hello}" destdir="${hellobuild}" debug="true" | |
383 target="1.4" | |
384 source="1.4" | |
385 debuglevel="lines,vars,source" | |
386 classpath="${jini_root}/lib/jsk-platform.jar:${jini_root}/lib/jini-ext.jar:${jini_root}/lib/start.jar:${jini_root}/lib/sun-util.jar:${lib}/stats.jar"/> | |
387 </target> | |
388 | |
389 <target name="entrysizer" depends="serverjar" | |
390 description="Build a test client for Blitz"> | |
391 <mkdir dir="${sizerbuild}"/> | |
392 <javac srcdir="${sizer}" destdir="${sizerbuild}" debug="true" | |
393 target="1.4" | |
394 source="1.4" | |
395 debuglevel="lines,vars,source" | |
396 classpath="${jini_root}/lib/jsk-platform.jar:${jini_root}/lib/jini-ext.jar:${jini_root}/lib/start.jar:${jini_root}/lib/sun-util.jar:${lib}/blitz.jar"/> | |
397 </target> | |
398 | |
399 <target name="javadoc" description="Generate developer grade docos for the code"> | |
400 <javadoc sourcepath="${testsrc}:${src}:${jini_root}/source/src:${db_root}/src" | |
401 maxmemory="256m" | |
402 destdir="docs/javadocs" | |
403 private="true" | |
404 packagenames="org.*"> | |
405 <tag name="todo" scope="all" description="todo:"/> </javadoc> | |
406 | |
407 </target> | |
408 | |
409 <target name="dumpprops" depends="compile" | |
410 description="dump the JDK's system properties"> | |
411 <java classname="org.dancres.util.DumpProps" | |
412 classpath="${build}"/> | |
413 </target> | |
414 | |
415 <target name="testreadsnap" depends="compile" | |
416 description="test basic snapshot functions"> | |
417 <java classname="org.dancres.blitz.test.ReadSnapshot" | |
418 classpathref="allclasses"/> | |
419 </target> | |
420 | |
421 <target name="testtakesnap" depends="compile" | |
422 description="test basic snapshot functions"> | |
423 <java classname="org.dancres.blitz.test.TakeSnapshot" | |
424 classpathref="allclasses"/> | |
425 </target> | |
426 | |
427 <target name="testdb" depends="compile" | |
428 description="test basic Berkeley DB functions"> | |
429 <java classname="org.dancres.blitz.disk.Disk" | |
430 classpathref="allclasses"/> | |
431 </target> | |
432 | |
433 <target name="testsizer" depends="compile" | |
434 description="test basic EntrySizer functions"> | |
435 <java classname="org.dancres.blitz.test.TestSizer" | |
436 classpathref="allclasses"/> | |
437 </target> | |
438 | |
439 <target name="teststartup" depends="compile" | |
440 description="test basic startup/shutdown function"> | |
441 <java classname="org.dancres.blitz.SpaceStartTest" | |
442 classpathref="allclasses"/> | |
443 </target> | |
444 | |
445 <target name="testckpt" depends="compile" | |
446 description="test basic checkpoint/restart function"> | |
447 <java classname="org.dancres.blitz.txn.TestCkpt" | |
448 classpathref="allclasses"/> | |
449 </target> | |
450 | |
451 <target name="testckptres" depends="compile" | |
452 description="test basic checkpoint/restart function"> | |
453 <java classname="org.dancres.blitz.txn.TestCkpt" | |
454 classpathref="allclasses"> | |
455 <arg value="150"/> | |
456 </java> | |
457 </target> | |
458 | |
459 <target name="testmangler" depends="compile" | |
460 description="test basic mangler functions"> | |
461 <java classname="org.dancres.blitz.mangler.EntryManglerTest" | |
462 classpathref="allclasses"/> | |
463 <java classname="org.dancres.blitz.mangler.StaticTest" | |
464 classpathref="allclasses"/> | |
465 </target> | |
466 | |
467 <target name="testwrite" depends="compile" | |
468 description="test basic write"> | |
469 <java classname="org.dancres.blitz.SpaceWriteTest" | |
470 classpathref="allclasses"/> | |
471 </target> | |
472 | |
473 <target name="testnoschematake" depends="compile" | |
474 description="test basic write"> | |
475 <java classname="org.dancres.blitz.UndefinedSchemaTake" | |
476 classpathref="allclasses"/> | |
477 </target> | |
478 | |
479 <target name="testbulkwrite" depends="compile" | |
480 description="test basic bulk write"> | |
481 <java classname="org.dancres.blitz.BulkWriteTest" | |
482 classpathref="allclasses"/> | |
483 </target> | |
484 | |
485 <target name="testbulktake" depends="compile" | |
486 description="test basic bulk take"> | |
487 <java classname="org.dancres.blitz.BulkWriteTakeTest" | |
488 classpathref="allclasses"/> | |
489 </target> | |
490 | |
491 <target name="testexists" depends="compile" | |
492 description="test basic exists conflicts"> | |
493 <java classname="org.dancres.blitz.test.Exists" | |
494 classpathref="allclasses"/> | |
495 </target> | |
496 | |
497 <target name="testtxnwritetake" depends="compile" | |
498 description="test basic write, take under txn"> | |
499 <java classname="org.dancres.blitz.test.WriteTakeTxn" | |
500 classpathref="allclasses"/> | |
501 </target> | |
502 | |
503 <target name="spacewrite" depends="compile" | |
504 description="test basic write"> | |
505 <java classname="com.incax.SpaceWriter" | |
506 classpathref="allclasses"/> | |
507 </target> | |
508 | |
509 <target name="testtracker" depends="compile" | |
510 description="test basic tracker"> | |
511 <java classname="org.dancres.blitz.LeaseTrackTest" | |
512 classpathref="allclasses"/> | |
513 </target> | |
514 | |
515 <target name="testreaper" depends="compile" | |
516 description="test basic reaper"> | |
517 <java classname="org.dancres.blitz.LeaseReapTest" | |
518 classpathref="allclasses"/> | |
519 </target> | |
520 | |
521 <target name="stressreaper" depends="compile" | |
522 description="stress reaper"> | |
523 <java classname="org.dancres.blitz.remote.test.StressReap" | |
524 fork="true" | |
525 classpathref="allclasses"> | |
526 <jvmarg value="-Xmx512m"/> | |
527 <jvmarg value="-Dcom.sun.management.jmxremote"/> | |
528 <arg value="8"/> | |
529 <arg value="10000"/> | |
530 </java> | |
531 </target> | |
532 | |
533 <target name="testtake" depends="compile" | |
534 description="test basic take"> | |
535 <java classname="org.dancres.blitz.SpaceWriteTakeTest" | |
536 classpathref="allclasses"/> | |
537 </target> | |
538 | |
539 <target name="testmultifieldmatch" depends="compile" | |
540 description="test basic field matching/ordering"> | |
541 <java classname="org.dancres.blitz.test.MultiFieldMatch" | |
542 classpathref="allclasses"/> | |
543 </target> | |
544 | |
545 <target name="testfifo" depends="compile" | |
546 description="test basic fifo behaviour"> | |
547 <java classname="org.dancres.blitz.SpaceFifonessTest" fork="true" | |
548 classpathref="allclasses"> | |
549 <jvmarg value="-Xmx512m"/> | |
550 </java> | |
551 </target> | |
552 | |
553 <target name="testcontents" depends="compile" | |
554 description="test basic getView"> | |
555 <java classname="org.dancres.blitz.test.Contents" fork="true" | |
556 classpathref="allclasses"> | |
557 <jvmarg value="-Dorg.dancres.blitz.config=/Users/dan/src/jini/blitz_pj_05/config/blitz.config"/> | |
558 </java> | |
559 </target> | |
560 | |
561 <target name="test05contents" depends="compile" | |
562 description="test basic getView"> | |
563 <java classname="org.dancres.blitz.test.JavaSpace05Contents" fork="true" | |
564 classpathref="allclasses"> | |
565 <jvmarg | |
566 value="-Dorg.dancres.blitz.config=/Users/dan/src/jini/blitz_pj_05/config/blitz.config"/> | |
567 </java> | |
568 </target> | |
569 | |
570 <target name="testonflycontents" depends="compile" | |
571 description="test basic on fly getView"> | |
572 <java classname="org.dancres.blitz.test.OnFlyContents" fork="true" | |
573 classpathref="allclasses"> | |
574 <jvmarg value="-Dorg.dancres.blitz.config=/Users/dan/src/jini/blitz_pj_05/config/blitz.config"/> | |
575 </java> | |
576 </target> | |
577 | |
578 <target name="testmtcontents" depends="compile" | |
579 description="test basic getView"> | |
580 <java classname="org.dancres.blitz.test.ConcurrentContents" fork="true" | |
581 classpathref="allclasses"> | |
582 <jvmarg value="-Dorg.dancres.blitz.config=/Users/dan/src/jini/blitz_pj_05/config/blitz.config"/> | |
583 </java> | |
584 </target> | |
585 | |
586 <target name="testinheritcontents" depends="compile" | |
587 description="test basic getView"> | |
588 <java classname="org.dancres.blitz.test.InheritingContents" fork="true" | |
589 classpathref="allclasses"> | |
590 <jvmarg value="-Dorg.dancres.blitz.config=/Users/dan/src/jini/blitz_pj_05/config/blitz.config"/> | |
591 </java> | |
592 </target> | |
593 | |
594 <target name="testschema" depends="compile" | |
595 description="test basic schema break"> | |
596 <java classname="org.dancres.blitz.SpaceSchemaBreakTest" | |
597 classpathref="allclasses"/> | |
598 </target> | |
599 | |
600 <target name="testhiertake" depends="compile" | |
601 description="test basic hier take"> | |
602 <java classname="org.dancres.blitz.test.HierTest" | |
603 classpathref="allclasses"/> | |
604 </target> | |
605 | |
606 <target name="testnulltake" depends="compile" | |
607 description="test basic take"> | |
608 <java classname="org.dancres.blitz.NullTakeTest" | |
609 classpathref="allclasses"/> | |
610 </target> | |
611 | |
612 <target name="testnotify" depends="compile" | |
613 description="test basic notify"> | |
614 <java classname="org.dancres.blitz.SpaceNotifyTest" | |
615 classpathref="allclasses"/> | |
616 </target> | |
617 | |
618 <target name="testnotifyrenew" depends="compile" | |
619 description="test basic notify renewal"> | |
620 <java classname="org.dancres.blitz.RenewNotify" | |
621 classpathref="allclasses"/> | |
622 </target> | |
623 | |
624 <target name="testanynotify" depends="compile" | |
625 description="test basic notify with ANY leases"> | |
626 <java classname="org.dancres.blitz.remote.test.SequenceNumberTest" | |
627 classpathref="allclasses"/> | |
628 </target> | |
629 | |
630 <target name="testwritespeed" depends="compile" | |
631 description="test write speed"> | |
632 <java classname="org.dancres.blitz.WriteSpeedTest" | |
633 classpathref="allclasses"> | |
634 <arg value="4000"/> | |
635 </java> | |
636 </target> | |
637 | |
638 <target name="testtxnlockcontents" depends="compile" | |
639 description="test txn locking and contents doesn't return duplicates"> | |
640 <java classname="org.dancres.blitz.test.TxnLockContents" | |
641 classpathref="allclasses"> | |
642 </java> | |
643 </target> | |
644 | |
645 <target name="testlargeobject" depends="compile" | |
646 description="test write speed for large objects"> | |
647 <java classname="org.dancres.blitz.test.LargeObjectTest" | |
648 classpathref="allclasses"> | |
649 <arg value="4000"/> | |
650 <arg value="8192"/> | |
651 </java> | |
652 </target> | |
653 | |
654 <target name="bigtxn" depends="compile" | |
655 description="Run a big txn with lots of takes followed by writes"> | |
656 <java classname="org.dancres.blitz.test.LargeTxn" | |
657 classpathref="allclasses"> | |
658 <arg value="100"/> | |
659 </java> | |
660 </target> | |
661 | |
662 <target name="testblocking" depends="compile" | |
663 description="test basic blocking"> | |
664 <java classname="org.dancres.blitz.SpaceBlockTest" | |
665 classpathref="allclasses"> | |
666 </java> | |
667 </target> | |
668 | |
669 <target name="testlockresolve" depends="compile" | |
670 description="test basic lock resolution"> | |
671 <java classname="org.dancres.blitz.test.LockTest" | |
672 classpathref="allclasses"> | |
673 </java> | |
674 </target> | |
675 | |
676 <target name="testtxnblocking" depends="compile" | |
677 description="test basic txn blocking"> | |
678 <java classname="org.dancres.blitz.test.TxnResolve" | |
679 classpathref="allclasses"> | |
680 </java> | |
681 </target> | |
682 | |
683 <target name="testtxnabort" depends="compile" | |
684 description="test basic txn abort"> | |
685 <java classname="org.dancres.blitz.test.TxnAbort" | |
686 classpathref="allclasses"> | |
687 </java> | |
688 </target> | |
689 | |
690 <target name="testlease" depends="compile" | |
691 description="test basic lease renewal"> | |
692 <java classname="org.dancres.blitz.LeaseTest" | |
693 classpathref="allclasses"> | |
694 </java> | |
695 </target> | |
696 | |
697 <target name="testexpire" depends="compile" | |
698 description="test basic lease expiry"> | |
699 <java classname="org.dancres.blitz.SpaceLeaseExpireTest" | |
700 classpathref="allclasses"> | |
701 </java> | |
702 </target> | |
703 | |
704 <target name="testfullnotify" depends="compile" | |
705 description="test basic lease renewal"> | |
706 <java classname="org.dancres.blitz.test.TxnNotify" | |
707 classpathref="allclasses"> | |
708 </java> | |
709 </target> | |
710 | |
711 <target name="testvisibility" depends="compile" | |
712 description="test basic visibility reg"> | |
713 <java classname="org.dancres.blitz.test.VisibilityTest" | |
714 classpathref="allclasses"> | |
715 </java> | |
716 </target> | |
717 | |
718 <target name="arctest" depends="compile" | |
719 description="test basic arc cache impl"> | |
720 <java classname="org.dancres.blitz.arc.ArcTest" | |
721 classpathref="allclasses"> | |
722 <arg value="200"/> | |
723 <arg value="400"/> | |
724 </java> | |
725 </target> | |
726 | |
727 <target name="thrash" depends="compile" | |
728 description="Thrash the space some and see if it breaks"> | |
729 <java classname="org.dancres.blitz.test.ThrashTest" | |
730 classpathref="allclasses"> | |
731 <arg value="5"/> | |
732 <arg value="4000"/> | |
733 <arg value="100"/> | |
734 </java> | |
735 </target> | |
736 | |
737 <target name="load" depends="compile" | |
738 description="test basic recovery behaviour - step I"> | |
739 <java classname="org.dancres.blitz.test.Load" | |
740 classpathref="allclasses"> | |
741 <arg value="150"/> | |
742 </java> | |
743 </target> | |
744 | |
745 <target name="backup" depends="compile" | |
746 description="test basic backup behaviour - step I - run unload after"> | |
747 <java classname="org.dancres.blitz.test.HotBackup" | |
748 classpathref="allclasses"> | |
749 <arg value="150"/> | |
750 <arg value="backups"/> | |
751 </java> | |
752 </target> | |
753 | |
754 <target name="unload" depends="compile" | |
755 description="test basic recovery behaviour - step II"> | |
756 <java classname="org.dancres.blitz.test.Unload" | |
757 classpathref="allclasses"> | |
758 <arg value="1"/> | |
759 </java> | |
760 </target> | |
761 | |
762 <target name="cleanout" depends="compile" | |
763 description="clean the space out"> | |
764 <java classname="org.dancres.blitz.Clean" | |
765 classpathref="allclasses"> | |
766 </java> | |
767 </target> | |
768 | |
769 <target name="swap" depends="compile" | |
770 description="test basic swapping/flushing - step I"> | |
771 <java classname="org.dancres.blitz.test.FlushSwap" | |
772 classpathref="allclasses"> | |
773 <arg value="250"/> | |
774 </java> | |
775 </target> | |
776 </project> |