-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.xml
3837 lines (3495 loc) · 153 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2000-2025, Board of Trustees of Leland Stanford Jr. University
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
-->
<project name="LOCKSS Gamma" default="test-all" basedir=".">
<description>
Args:
-Dargs="args ..." Supply cmd line args to run-class
-Djvmargs="args ..." Supply cmd line args to java (e.g., -Xmx1000m)
-Dclass=pack.age.Class Specify class for test-one, test-class, run-class
-Dexclude=path Exclude matching tests.
-Dfile=path/to/file Specify file for print or index.
File is relative to project base dir
-Dfiltertrace=no Don't filter junit frames from backtrace.
-Dforce=true Override prerequisite checks (e.g., java version)
-Dfork=true Run each test in a separate jvm. (Default is true,
setting to false will cause some tests to fail.)
-Dforkc=true Run compiler in a separate jvm.
-Dhalt=false Run all tests in group, even if some fail.
-Dinclude=path Include matching tests.
-Djavaversion=1.8 The version of Java accepted/targeted.
-Dkeeptempfiles=true Don't delete temp files after tests run.
-Dlistfiles=true List the source files that will be compiled. Use if
a compile step runs when nothing should need to
be compiled, to find package/dir disagreements.
-Dloglevel=debug Set default log level to debug for
test-all, test-one, test-class, run-class.
-Dtdbloglevel=warning Set log level to warning when loading tdb files
(default is "error").
-Dlogtarget=Class Set default log target.
-Dnonetwork=true Skip tests that require a working network
-Dnowarn=true Turn off compiler warnings.
-Dpapersize=letter The medium to pass to a2ps for index and print.
-Dshowoutput=yes With test-one, show System.err output as it happens.
-Dskipgettext=yes Bypass running gettext (i18n)
-Dsuite=suite-name Specify stf suite name.
-Dtimeout=msecs Override the default test failure timeout.
-Dtitledb=file Title DB config file to bundle with a plugin JAR.
post-commit-test args:
-Dbranch=tag Branch to checkout (defaults to current branch)
-Dcopylib=true If true, lib jars are copied to temp build dir,
not checked out from git.
-Dtarget=target Target that post-commit-test will build.
Release targets (jar-lockss, rpm))
-Dreleasename=string Name of daemon release, if building a release.
-Drpmrelease=string Name of RPM release, if building an RPM.
-Dtarrelease=string Name of tar release, if building an tar.
Javadoc targets (javadoc, javadoc-test)
-Dauthor=true Include author info in javadoc.
-Duse=false Exclude Class use info from javadoc.
-Dversion=true Include version info in javadoc.
-Dscript=name Script run by jdftp. Default is lockss-jdftp.
-Dformat=name for param-docs target, specifies whether params
should be listed alphabetically (Alpha, the default),
or grouped by Category or Relevance.
Plugin targets (build-plugin, sign-plugin)
-Dplugin-root=path Path to root of plugin source or classes hierarchy.
Defaults to ${basedir}/plugins/classes
-Dsign-keystore=path Path to keystore to use when signing plugin JARs.
-Dsign-alias=alias Alias to use when signing loadable plugin JARs.
-Dsign-keypass=pass Keystore password to use when signing plugin JARs.
-Dsign-storepass=pass Private key password to use when signing plugin JARs.
-Dmock=pack/age Specify package for generate-null-mock,
generate-unsupported-mock
</description>
<!-- User defaults (old name) -->
<property file="${user.home}/lockss.properties"/>
<!-- User defaults -->
<property file="${user.home}/.lockssprops"/>
<!-- Defaults -->
<property name="javaversion" value="1.8" />
<property name="loglevel" value="" />
<property name="showoutput" value="no" />
<property name="filtertrace" value="yes" />
<property name="timeout" value="" />
<property name="jvmargs" value="" />
<property name="keeptempfiles" value="" />
<property name="idtempfiles" value="" />
<property name="nonetwork" value="" />
<!-- Some tests will not work right if fork=no -->
<property name="fork" value="yes" />
<property name="forkc" value="yes" />
<property name="exclude" value="" />
<property name="halt" value="true" />
<property name="author" value="false" />
<property name="use" value="true" />
<property name="version" value="false" />
<property name="noqualifier" value="java.*" />
<!-- <property name="noqualifier" -->
<!-- value="java.lang:java.io:java.net:java.util:java.text" /> -->
<property name="papersize" value="letter" />
<!-- Default tmpdir is java.io.tmpdir -->
<property name="tmpdir" value="${java.io.tmpdir}" />
<!-- Default heap for junit if none specified in jvmargs -->
<property name="junit.default.args" value="-Xmx256m" />
<property environment="env"/>
<!-- Ignore system classpath, to ensure consistent builds -->
<property name="build.sysclasspath" value="ignore" />
<!-- git-related -->
<property name="git.dir" value="lockss-daemon" />
<property name="git.anon.root"
value="git@github.com:lockss/lockss-daemon.git" />
<!-- XXX should get this from -->
<!-- Directories -->
<property name="java.lib" value="${env.JAVA_HOME}/lib" />
<property name="maven.home" value="${env.MAVEN_HOME}" />
<property name="src" value="${basedir}/src" />
<property name="classes" value="${basedir}/classes" />
<property name="rewoven.classes" value="${basedir}/rewoven-classes" />
<property name="lib" value="${basedir}/lib"/>
<property name="test" value="${basedir}/test"/>
<property name="test.src" value="${test}/src"/>
<property name="test.classes" value="${test}/classes" />
<!-- <property name="test.lib" value="${test}/lib"/> -->
<property name="test.lib" value="${lib}"/>
<property name="test.results" value="${test}/results"/>
<property name="test.native" value="${test}/native"/>
<property name="generated" value="${basedir}/generated"/>
<property name="generated.src" value="${generated}/src"/>
<property name="generated.classes" value="${generated}/classes" />
<property name="framework.stf" value="${test}/frameworks/run_stf"/>
<property name="plugins" value="${basedir}/plugins"/>
<property name="plugins.src" value="${plugins}/src"/>
<property name="plugins.externals" value="${plugins}/externals"/>
<property name="plugins.classes" value="${plugins}/classes" />
<property name="plugins.test" value="${plugins}/test"/>
<property name="plugins.test.src" value="${plugins.test}/src"/>
<property name="plugins.test.classes" value="${plugins.test}/classes"/>
<property name="plugins.test.results" value="${plugins.test}/results"/>
<!-- Tdb source and .xml output dirs -->
<property name="tdb.src.dir" value="${basedir}/tdb" />
<property name="tdb.xml.dir"
value="${basedir}/test/frameworks/tdbxml" />
<!-- Loadable plugin jars created here -->
<property name="plugins.dir" value="${basedir}/plugins/jars" />
<property name="scripts" value="${basedir}/scripts"/>
<!-- All python test files. (How to factor out dir list?) -->
<fileset id="python.tests" dir="${basedir}">
<include name="scripts/**/*_test.py"/>
<include name="test/frameworks/*/*_test.py"/>
</fileset>
<property name="ant" value="${basedir}/ant"/>
<property name="ant.src" value="${ant}/src"/>
<property name="ant.classes" value="${ant}/classes" />
<property name="tools" value="${basedir}/tools"/>
<property name="tools.src" value="${tools}/src"/>
<property name="tools.classes" value="${tools}/classes" />
<property name="tools.test" value="${tools}/test"/>
<property name="tools.test.src" value="${tools.test}/src"/>
<property name="tools.test.classes" value="${tools.test}/classes"/>
<property name="instrumented" value="${basedir}/instrumented"/>
<property name="javadoc" value="${basedir}/javadoc"/>
<property name="test.javadoc" value="${test}/javadoc"/>
<property name="depend.cache" value="${basedir}/.depend"/>
<property name="temp.build" value="${basedir}/tempbuild"/>
<property name="ajax" value="${basedir}/ajax"/>
<property name="ajax.target" value="${ajax}/target"/>
<!-- Prototype RPM tree -->
<property name="protorpm.top" value="${basedir}/rpms" />
<property name="protorpm.rpms" value="${protorpm.top}/RPMS" />
<!-- Library jars -->
<property name="rhino.jar" value="${lib}/rhino.jar"/>
<property name="js-engine.jar" value="${lib}/js-engine.jar"/>
<property name="script.jar" value="${lib}/script.jar"/>
<property name="derby.jar" value="${lib}/derby.jar"/>
<property name="derbyclient.jar" value="${lib}/derbyclient.jar"/>
<property name="derbynet.jar" value="${lib}/derbynet.jar"/>
<!-- <property name="derby.version" value="10.12.1.1"/>-->
<!-- <property name="derby.jar" value="${lib}/derby-${derby.version}.jar"/>-->
<!-- <property name="derbyclient.jar" value="${lib}/derbyclient-${derby.version}.jar"/>-->
<!-- <property name="derbynet.jar" value="${lib}/derbynet-${derby.version}.jar"/>-->
<property name="postgresql-jdbc.jar" value="${lib}/postgresql-42.7.5.jar" />
<property name="mysql-connector-j.jar"
value="${lib}/mysql-connector-j-8.0.31.jar" />
<property name="mailapi.jar" value="${lib}/javamail-mailapi-1.3.2.jar"/>
<property name="activation.jar" value="${lib}/activation-1.0.2.jar"/>
<property name="castor.jar" value="${lib}/castor-0.9.4.1-xml.jar"/>
<!-- the jars needed for xml processeing using xerces2j and xalan -->
<property name="xerces.jar" value="${lib}/xercesImpl-2.12.1.jar"/>
<property name="xml-apis.jar" value="${lib}/xml-apis-1.4.01.jar"/>
<property name="xalan.jar" value="${lib}/xalan-2.7.2.jar"/>
<property name="xml-resolver.jar" value="${lib}/xml-resolver-1.2.jar" />
<property name="xalan-serializer.jar" value="${lib}/xalan-serializer-2.7.2.jar" />
<property name="jimi.jar" value="${lib}/JimiProClasses.jar"/>
<property name="jetty.jar" value="${lib}/jetty-5.1.5L.jar"/>
<property name="servlet.jar" value="${lib}/javax.servlet.jar"/>
<property name="ziplet-filter.jar"
value="${lib}/ziplet-2.4.1.jar"/>
<property name="jaxp.jar" value="${lib}/javax.xml.jaxp.jar"/>
<!-- <property name="xml.jar" value="${lib}/org.apache.crimson.jar"/> -->
<property name="log4j2.version" value="2.24.1" />
<property name="log4j2-api.jar" value="${lib}/log4j-api-${log4j2.version}.jar" />
<property name="log4j2-core.jar" value="${lib}/log4j-core-${log4j2.version}.jar" />
<property name="log4j2-1.2-compat.jar" value="${lib}/log4j-1.2-api-${log4j2.version}.jar" />
<property name="commons.beanutils.jar" value="${lib}/commons-beanutils-1.10.0.jar" />
<property name="commons.cli.jar" value="${lib}/commons-cli-1.9.0.jar" />
<property name="commons.codec.jar" value="${lib}/commons-codec-1.17.2.jar" />
<property name="commons.collections.jar" value="${lib}/commons-collections-3.2.2.jar" />
<property name="commons.collections4.jar" value="${lib}/commons-collections4-4.4.jar" />
<property name="commons.compress.jar" value="${lib}/commons-compress-1.27.1.jar" />
<property name="commons.configuration.jar" value="${lib}/commons-configuration-1.10.jar" />
<property name="commons.csv.jar" value="${lib}/commons-csv-1.13.0.jar" />
<!-- commons-dbcp2 -->
<!-- commons-digester -->
<!-- commons-fileupload -->
<property name="commons.io.jar" value="${lib}/commons-io-2.18.0.jar" />
<property name="commons.jxpath.jar" value="${lib}/commons-jxpath-1.3.jar" />
<property name="commons.lang.jar" value="${lib}/commons-lang-2.6.jar" />
<property name="commons.lang3.jar" value="${lib}/commons-lang3-3.17.0.jar" />
<property name="commons.logging.jar" value="${lib}/commons-logging-1.2.jar" />
<property name="commons.primitives.jar" value="${lib}/commons-primitives-1.0.jar" />
<property name="commons.text.jar" value="${lib}/commons-text-1.13.0.jar" />
<property name="commons.validator.jar" value="${lib}/commons-validator-1.9.0.jar" />
<property name="commons.httpclient.jar"
value="${lib}/commons-httpclient-3.0-rc4.jar"/>
<!-- gettext jars, for i18n -->
<property name="gettext.tasks.jar"
value="${lib}/gettext-ant-tasks-0.9.7.jar"/>
<property name="gettext.commons.jar"
value="${lib}/gettext-commons-0.9.6.jar"/>
<!-- TrueZIP -->
<property name="truezip.version" value="7.5.5" />
<property name="truezip-driver-file.jar"
value="${lib}/truezip-driver-file-${truezip.version}.jar" />
<property name="truezip-driver-tar.jar"
value="${lib}/truezip-driver-tar-${truezip.version}.jar" />
<property name="truezip-driver-zip.jar"
value="${lib}/truezip-driver-zip-${truezip.version}.jar" />
<property name="truezip-file.jar"
value="${lib}/truezip-file-${truezip.version}.jar" />
<property name="truezip-kernel.jar"
value="${lib}/truezip-kernel-${truezip.version}.jar" />
<property name="truezip-swing.jar"
value="${lib}/truezip-swing-${truezip.version}.jar" />
<property name="javatar.jar" value="${lib}/javagnutar.jar" />
<property name="concurrent.jar" value="${lib}/concurrent.jar"/>
<property name="htmlparser.jar" value="${lib}/htmlparser-1.6p.jar"/>
<property name="jsoup.jar" value="${lib}/jsoup-1.18.3.jar"/>
<property name="marc4j.jar" value="${lib}/marc4j-2.9.6.jar" />
<!-- Next 6 needed for Jonix -->
<property name="jonix.version" value="2024-07" />
<property name="jonix.jar" value="${lib}/jonix-${jonix.version}.jar" />
<property name="jonix-common.jar" value="${lib}/jonix-common-${jonix.version}.jar" />
<property name="jonix-xml.jar" value="${lib}/jonix-xml-${jonix.version}.jar" />
<property name="jonix-onix2.jar" value="${lib}/jonix-onix2-${jonix.version}.jar" />
<property name="jonix-onix3.jar" value="${lib}/jonix-onix3-${jonix.version}.jar" />
<property name="apiviz.jar" value="${lib}/apiviz-1.3.1.jar"/>
<!-- JBibTeX (also requires jackson-annotations) -->
<property name="jbibtex.jar" value="${lib}/jbibtex-1.0.20.jar" />
<!-- W3C RDF Parser -->
<property name="rdf.jar" value="${lib}/rdf-api-2001-01-19.jar" />
<property name="xstream.jar" value="${lib}/xstream-1.4.21.jar" />
<property name="xmlunit.jar" value="${lib}/xmlunit-1.6.jar" />
<property name="oai-harvester.jar" value="${lib}/harvester2-0.1.12-p1.jar"/>
<!-- Needed by OAI harvester: Xalan, Xerces, XML-APIs, Log4j -->
<property name="js.jar" value="${test.lib}/js.jar" />
<property name="junit.jar" value="${test.lib}/junit.jar"/>
<property name="junit.addons.jar" value="${test.lib}/junit-addons-1.4.jar"/>
<property name="httpunit.jar" value="${test.lib}/httpunit.jar"/>
<property name="mockito.jar" value="${test.lib}/mockito-core-1.10.19.jar"/>
<property name="nekohtml.jar" value="${test.lib}/nekohtml.jar"/>
<property name="objenesis.jar" value="${test.lib}/objenesis-2.1.jar"/>
<property name="jdk.tools.jar" value="${java.lib}/tools.jar"/>
<property name="cobertura.jar" value="${test.lib}/cobertura.jar"/>
<property name="bcel.jar" value="${test.lib}/bcel.jar"/>
<property name="oro.jar" value="${test.lib}/jakarta-oro-2.0.8.jar"/>
<property name="getopt.jar" value="${test.lib}/gnu-getopt-1.0.13.jar"/>
<property name="javacsv.jar" value="${test.lib}/javacsv.jar"/>
<property name="ant-contrib.jar" value="${lib}/ant-contrib-0.6.jar"/>
<!-- Needed by XOAI -->
<property name="xoai-common.jar" value="${lib}/xoai-common-4.2.0.jar"/>
<property name="xoai-service-provider.jar" value="${lib}/xoai-service-provider-4.2.0-p1.jar"/>
<property name="xml-io.jar" value="${lib}/xml-io-1.0.3-p2.jar"/>
<property name="httpcore.jar" value="${lib}/httpcore-4.3.2.jar"/>
<property name="hamcrest-all.jar" value="${lib}/hamcrest-all-1.3.jar"/>
<property name="stax2-api.jar" value="${lib}/stax2-api-3.0.4.jar"/>
<property name="woodstox-core-asl.jar" value="${lib}/woodstox-core-asl-4.4.1.jar"/>
<property name="test-support.jar" value="${lib}/test-support-1.0.4.jar"/>
<property name="httpclient.jar" value="${lib}/httpclient-4.3.1.jar"/>
<!-- PDFBox -->
<property name="pdfbox.version" value="1.8.17" />
<property name="pdfbox.jar" value="${lib}/pdfbox-${pdfbox.version}.jar" />
<!-- Next 7 JARs needed by PDFBox: -->
<property name="fontbox.jar" value="${lib}/fontbox-${pdfbox.version}.jar" />
<property name="jempbox.jar" value="${lib}/jempbox-${pdfbox.version}.jar" />
<property name="bouncycastle.variant" value="jdk18on" />
<property name="bouncycastle.version" value="1.78.1" />
<property name="bouncycastle-provider.jar" value="${lib}/bcprov-${bouncycastle.variant}-${bouncycastle.version}.jar" />
<property name="bouncycastle-mail.jar" value="${lib}/bcmail-${bouncycastle.variant}-${bouncycastle.version}.jar" />
<property name="icu4j.version" value="75.1" />
<property name="icu4j.jar" value="${lib}/icu4j-${icu4j.version}.jar" />
<property name="icu4j-charset.jar" value="${lib}/icu4j-charset-${icu4j.version}.jar" />
<property name="icu4j-localespi.jar" value="${lib}/icu4j-localespi-${icu4j.version}.jar" />
<!-- PDFBox 0.7.3 -->
<property name="pdfbox-old.jar" value="${lib}/PDFBox-0.7.3.jar" />
<!-- Next 3 needed by PDFBox 0.7.3: -->
<property name="fontbox-old.jar" value="${lib}/FontBox-0.1.0-dev.jar" />
<!-- <property name="bouncycastle.provider-old.jar" value="${lib}/bcprov-jdk14-132.jar" /> -->
<!-- <property name="bouncycastle.mail-old.jar" value="${lib}/bcmail-jdk14-132.jar" /> -->
<!-- Needed by ArcExploder, exporters, jcr repo: -->
<property name="heritrix.jar" value="${lib}/heritrix-commons-3.1.0-p1.jar" />
<property name="heritrix-fastutil.jar" value="${lib}/fastutil-5.0.7.jar" />
<property name="heritrix-guava.jar" value="${lib}/guava-r08.jar" />
<!-- Database schema documentation. -->
<property name="schemaSpy.jar" value="${lib}/schemaSpy_5.0.0.jar" />
<property name="ext.javadoc"
value="http://documents.lockss.org/gamma-libs/" />
<!-- Next jackson JARs needed by entitlement registry and jersey2 -->
<property name="jackson.version" value="2.10.5" />
<property name="jackson-core.jar" value="${lib}/jackson-core-${jackson.version}.jar" />
<property name="jackson-databind.jar" value="${lib}/jackson-databind-${jackson.version}.1.jar" /><!-- NOTE: 2.9.10.8 -->
<property name="jackson-annotations.jar" value="${lib}/jackson-annotations-${jackson.version}.jar" />
<!-- Needed by StringUtil.toUnaccented(): -->
<property name="lucene-analyzers-common.jar" value="${lib}/lucene-analyzers-common-8.9.0.jar" />
<property name="lucene-core.jar" value="${lib}/lucene-core-8.9.0.jar" />
<!-- Jars for okhttp -->
<property name="okhttp.version" value="4.9.3" />
<property name="okhttp.jar" value="${lib}/okhttp-${okhttp.version}.jar" />
<property name="logging-interceptor.jar" value="${lib}/logging-interceptor-${okhttp.version}.jar" />
<property name="okio.jar" value="${lib}/okio-2.8.0.jar" />
<property name="kotlin-stdlib.jar" value="${lib}/kotlin-stdlib-1.4.10.jar" />
<property name="gson.jar" value="${lib}/gson-2.8.6.jar" />
<property name="gson-fire.jar" value="${lib}/gson-fire-1.8.4.jar" />
<property name="swagger-annotations.jar" value="${lib}/swagger-annotations-1.5.24.jar" />
<property name="jsr305.jar" value="${lib}/jsr305-3.0.2.jar" />
<!-- Json-Path depends on Json-Smart and SLF4J -->
<property name="json-path.jar" value="${lib}/json-path-2.9.0.jar" />
<property name="json-smart.jar" value="${lib}/json-smart-2.5.0.jar" />
<property name="antlr.version" value="4.9.3" /><!-- 4.9.3 is the last Java 8 version before 4.10 -->
<property name="antlr.runtime.jar" value="${lib}/antlr-runtime-${antlr.version}.jar" />
<property name="antlr.tools.jar" value="${lib}/antlr-${antlr.version}-complete.jar" />
<!-- Jars we create -->
<property name="lockss.jar" value="${lib}/lockss.jar"/>
<property name="lockss.rewoven.jar" value="${lib}/lockss-rewoven.jar"/>
<property name="lockss.generated.jar" value="${lib}/lockss-generated.jar"/>
<property name="lockss.test.jar" value="${test.lib}/lockss-test.jar"/>
<property name="lockss.plugins.jar" value="${lib}/lockss-plugins.jar"/>
<property name="lockss.plugins.test.jar" value="${lib}/lockss-plugins-test.jar"/>
<property name="lockss.ant.jar" value="${lib}/lockss-ant.jar"/>
<property name="lockss.tools.jar" value="${lib}/lockss-tools.jar"/>
<property name="lockss.tools.test.jar" value="${lib}/lockss-tools-test.jar"/>
<property name="lockss.platform.jar" value="${lib}/lockss-platform.jar"/>
<!-- Files -->
<property name="default.releasename.file" value="${src}/defaultreleasename"/>
<property name="test.classpath.file" value="${test}/test-classpath"/>
<property name="test.plugin.classpath.file" value="${test}/test-plugin-classpath"/>
<property name="test.param.classpath.file" value="${test}/test-p-classpath"/>
<property name="run.classpath.file" value="${test}/run-classpath"/>
<property name="openbsd.classpath.file" value="${lib}/run-classpath"/>
<property name="openbsd.packinglist.file" value="${lib}/packing-list"/>
<property name="run.props" value="${lib}/run-props"/>
<property name="maxheap.script" value="${lib}/maxheap"/>
<!-- This path is also known to org.lockss.util.BuildInfo class -->
<property name="build.info.file"
value="${classes}/org/lockss/htdocs/build.properties"/>
<property name="build.filerev.file"
value="${classes}/revision-info"/>
<property name="cobertura.ser" value="cobertura.ser" />
<property name="aspectj.jar" value="${lib}/aspectj-1.8.10.jar"/>
<property name="aspectj.tools.jar" value="${lib}/aspectjtools.jar"/>
<property name="jcabi.jar" value="${lib}/jcabi-aspects-1.0-SNAPSHOT-jar-with-dependencies.jar"/>
<property name="ant-contrib.resource"
value="net/sf/antcontrib/antcontrib.properties"/>
<property name="requires-1.7" value="test/requires-1.7"/>
<!-- Database schema documentation. -->
<property name="schema.doc.dir" value="${javadoc}/schemadoc"/>
<!-- Needed by web services -->
<property name="aopalliance.jar" value="${lib}/aopalliance-1.0.jar" />
<property name="asm.jar" value="${lib}/asm-3.3.1.jar" />
<property name="asm-tree.jar" value="${lib}/asm-tree-3.0.jar" />
<property name="cxf.jar" value="${lib}/cxf-2.6.2.jar" />
<property name="FastInfoset.jar" value="${lib}/FastInfoset-1.2.9.jar" />
<property name="jaxb-impl.jar" value="${lib}/jaxb-impl-2.2.5.jar" />
<property name="jaxb-xjc.jar" value="${lib}/jaxb-xjc-2.2.5.jar" />
<property name="mimepull.jar" value="${lib}/mimepull-1.7.jar" />
<property name="neethi.jar" value="${lib}/neethi-3.0.2.jar" />
<property name="spring-aop.jar" value="${lib}/spring-aop-3.0.7.RELEASE.jar" />
<property name="spring-asm.jar" value="${lib}/spring-asm-3.0.7.RELEASE.jar" />
<property name="spring-beans.jar" value="${lib}/spring-beans-3.0.7.RELEASE.jar" />
<property name="spring-context.jar" value="${lib}/spring-context-3.0.7.RELEASE.jar" />
<property name="spring-core.jar" value="${lib}/spring-core-3.0.7.RELEASE.jar" />
<property name="spring-expression.jar" value="${lib}/spring-expression-3.0.7.RELEASE.jar" />
<property name="spring-web.jar" value="${lib}/spring-web-3.0.7.RELEASE.jar" />
<property name="velocity.jar" value="${lib}/velocity-1.7.jar" />
<property name="wsdl4j.jar" value="${lib}/wsdl4j-1.6.2.jar" />
<property name="xmlschema-core.jar" value="${lib}/xmlschema-core-2.0.3.jar" />
<property name="JoSQL.jar" value="${lib}/JoSQL-2.2.jar" />
<property name="gentlyWEB-utils.jar" value="${lib}/gentlyWEB-utils-1.1.jar" />
<!-- Needed by OIOSAML -->
<!-- FYI: actually version 1.8 -->
<property name="commons-digester-commons-digester.jar"
value="${lib}/commons-digester-commons-digester.jar" />
<!-- FYI: actually version 1.2.1 -->
<property name="commons-fileupload-commons-fileupload.jar"
value="${lib}/commons-fileupload-commons-fileupload.jar" />
<property name="esapi-2.0GA.jar" value="${lib}/esapi-2.0GA.jar" />
<property name="joda-time.jar" value="${lib}/joda-time-2.13.0.jar" />
<property name="oiosaml.java-21188-PATCHED.jar"
value="${lib}/oiosaml.java-21188-PATCHED.jar" />
<property name="opensaml-2.5.1.jar" value="${lib}/opensaml-2.5.1.jar" />
<property name="openws-1.4.2.jar" value="${lib}/openws-1.4.2.jar" />
<property name="org.apache.santuario-xmlsec.jar"
value="${lib}/org.apache.santuario-xmlsec.jar" />
<property name="org.bouncycastle-pkix.jar"
value="${lib}/org.bouncycastle-bcpkix-jdk15on.jar" />
<property name="org.fishwife-jrugged-core.jar"
value="${lib}/org.fishwife-jrugged-core.jar" />
<property name="org.slf4j-slf4j-api.jar"
value="${lib}/slf4j-api-1.7.25.jar" />
<property name="xmltooling-1.3.2.jar" value="${lib}/xmltooling-1.3.2.jar" />
<property name="empty.db.parent.dir" value="${tmpdir}" />
<property name="empty.db.dir" value="${empty.db.parent.dir}/db" />
<property name="empty.db.archive"
value="${test.classes}/org/lockss/db/db.zip" />
<!-- Compiler options -->
<property name="javac.debug" value="on" />
<property name="javac.optimize" value="off" />
<property name="javac.deprecation" value="false" />
<!-- Cobertura classpath -->
<path id="cobertura.classpath">
<pathelement path="${cobertura.jar}" />
<pathelement path="${asm.jar}" />
<pathelement path="${asm-tree.jar}" />
<pathelement path="${oro.jar}" />
<pathelement path="${log4j2-api.jar}" />
<pathelement path="${log4j2-core.jar}" />
<pathelement path="${log4j2-1.2-compat.jar}" />
</path>
<!-- Classpaths -->
<path id="compile.classpath">
<pathelement path="${lockss.generated.jar}" />
<pathelement path="${commons.text.jar}" /><!-- @since 1.75 -->
<pathelement path="${commons.lang.jar}" />
<pathelement path="${commons.lang3.jar}" /><!-- @since 1.67 -->
<pathelement path="${commons.collections.jar}" />
<pathelement path="${commons.collections4.jar}" />
<pathelement path="${commons.logging.jar}" />
<pathelement path="${commons.cli.jar}" />
<pathelement path="${commons.codec.jar}" />
<pathelement path="${commons.configuration.jar}" />
<pathelement path="${commons.csv.jar}" />
<pathelement path="${commons.compress.jar}" />
<pathelement path="${commons.httpclient.jar}" />
<pathelement path="${commons.io.jar}" />
<pathelement path="${commons.jxpath.jar}" />
<pathelement path="${commons.validator.jar}" />
<pathelement path="${commons.primitives.jar}" />
<pathelement path="${truezip-kernel.jar}" />
<pathelement path="${truezip-file.jar}" />
<pathelement path="${truezip-driver-file.jar}" />
<pathelement path="${truezip-driver-zip.jar}" />
<pathelement path="${truezip-driver-tar.jar}" />
<!-- XXX Shouldn't need this - figure out how to avoid dependency -->
<pathelement path="${truezip-swing.jar}" />
<pathelement path="${javatar.jar}" />
<pathelement path="${log4j2-api.jar}" />
<pathelement path="${log4j2-core.jar}" />
<pathelement path="${log4j2-1.2-compat.jar}" />
<pathelement path="${concurrent.jar}" />
<pathelement path="${jetty.jar}" />
<pathelement path="${servlet.jar}" />
<pathelement path="${ziplet-filter.jar}" />
<pathelement path="${js-engine.jar}" />
<pathelement path="${script.jar}" />
<pathelement path="${rhino.jar}" />
<pathelement path="${derby.jar}" />
<pathelement path="${derbyclient.jar}" />
<pathelement path="${derbynet.jar}" />
<pathelement path="${postgresql-jdbc.jar}" />
<pathelement path="${mysql-connector-j.jar}" />
<pathelement path="${mailapi.jar}" />
<pathelement path="${activation.jar}" />
<pathelement path="${castor.jar}" />
<pathelement path="${xerces.jar}" />
<pathelement path="${xml-apis.jar}" />
<pathelement path="${jimi.jar}" />
<pathelement path="${oro.jar}" />
<pathelement path="${htmlparser.jar}" />
<pathelement path="${jsoup.jar}" />
<!-- MARC4J -->
<pathelement path="${marc4j.jar}" />
<!-- Next 6 needed for Jonix -->
<pathelement path="${jonix.jar}" />
<pathelement path="${jonix-common.jar}" />
<pathelement path="${jonix-xml.jar}" />
<pathelement path="${jonix-onix2.jar}" />
<pathelement path="${jonix-onix3.jar}" />
<pathelement path="${apiviz.jar}" />
<!-- JBibTeX (also requires jackson-annotations) -->
<pathelement path="${jbibtex.jar}" />
<pathelement path="${rdf.jar}" />
<pathelement path="${xstream.jar}" />
<pathelement path="${pdfbox.jar}" />
<!-- Next 7 needed by PDFBox: -->
<pathelement path="${fontbox.jar}" />
<pathelement path="${jempbox.jar}" />
<pathelement path="${bouncycastle-provider.jar}" />
<pathelement path="${bouncycastle-mail.jar}" />
<pathelement path="${icu4j.jar}" />
<pathelement path="${icu4j-charset.jar}" />
<pathelement path="${icu4j-localespi.jar}" />
<pathelement path="${pdfbox-old.jar}" />
<!-- Next 3 needed by PDFBox 0.7.3: -->
<pathelement path="${fontbox-old.jar}" />
<!-- <pathelement path="${bouncycastle.provider-old.jar}" /> -->
<!-- <pathelement path="${bouncycastle.mail-old.jar}" /> -->
<!-- jars needed to run the OAI harvester -->
<pathelement path="${oai-harvester.jar}" />
<pathelement path="${xalan.jar}" />
<!-- jars needed by the ArcCrawler -->
<pathelement path="${heritrix.jar}" />
<pathelement path="${heritrix-fastutil.jar}" />
<pathelement path="${heritrix-guava.jar}" />
<pathelement path="${commons.beanutils.jar}" />
<!-- Jars for I18N -->
<pathelement path="${gettext.commons.jar}" />
<!-- Needed by web services -->
<pathelement path="${aopalliance.jar}" />
<pathelement path="${asm.jar}" />
<pathelement path="${cxf.jar}" />
<pathelement path="${FastInfoset.jar}" />
<pathelement path="${jaxb-impl.jar}" />
<pathelement path="${jaxb-xjc.jar}" />
<pathelement path="${mimepull.jar}" />
<pathelement path="${neethi.jar}" />
<pathelement path="${spring-aop.jar}" />
<pathelement path="${spring-asm.jar}" />
<pathelement path="${spring-beans.jar}" />
<pathelement path="${spring-context.jar}" />
<pathelement path="${spring-core.jar}" />
<pathelement path="${spring-expression.jar}" />
<pathelement path="${spring-web.jar}" />
<pathelement path="${velocity.jar}" />
<pathelement path="${wsdl4j.jar}" />
<pathelement path="${xmlschema-core.jar}" />
<pathelement path="${JoSQL.jar}" />
<pathelement path="${gentlyWEB-utils.jar}" />
<!-- Needed for DB migration-->
<pathelement path="${getopt.jar}" />
<!-- Next three JARs needed by entitlement registry -->
<pathelement path="${jackson-annotations.jar}" />
<pathelement path="${jackson-core.jar}" />
<pathelement path="${jackson-databind.jar}" />
<pathelement path="${lucene-analyzers-common.jar}" />
<pathelement path="${lucene-core.jar}" />
<!-- Jersey jars -->
<pathelement path="${okhttp.jar}" />
<pathelement path="${logging-interceptor.jar}" />
<pathelement path="${okio.jar}" />
<pathelement path="${kotlin-stdlib.jar}" />
<pathelement path="${gson.jar}" />
<pathelement path="${gson-fire.jar}" />
<pathelement path="${swagger-annotations.jar}" />
<pathelement path="${jsr305.jar}" />
<!-- Json-Path depends on Json-Smart and SLF4J -->
<pathelement path="${json-path.jar}" />
<!-- Needed for TDB tools: -->
<pathelement path="${antlr.runtime.jar}" />
<!-- Needed by XOAI -->
<pathelement path="${xoai-common.jar}" />
<pathelement path="${xoai-service-provider.jar}" />
<pathelement path="${xml-io.jar}" />
<pathelement path="${httpcore.jar}" />
<pathelement path="${hamcrest-all.jar}" />
<pathelement path="${stax2-api.jar}" />
<pathelement path="${woodstox-core-asl.jar}" />
<pathelement path="${test-support.jar}" />
<pathelement path="${httpclient.jar}" />
<!-- Needed by OIOSAML -->
<pathelement path="${commons-digester-commons-digester.jar}" />
<pathelement path="${commons-fileupload-commons-fileupload.jar}" />
<pathelement path="${esapi-2.0GA.jar}" />
<pathelement path="${joda-time.jar}" />
<pathelement path="${oiosaml.java-21188-PATCHED.jar}" />
<pathelement path="${opensaml-2.5.1.jar}" />
<pathelement path="${openws-1.4.2.jar}" />
<pathelement path="${org.apache.santuario-xmlsec.jar}" />
<pathelement path="${org.bouncycastle-pkix.jar}" />
<pathelement path="${org.fishwife-jrugged-core.jar}" />
<pathelement path="${org.slf4j-slf4j-api.jar}" />
<pathelement path="${xalan-serializer.jar}" />
<pathelement path="${xml-resolver.jar}" />
<pathelement path="${xmltooling-1.3.2.jar}" />
<pathelement path="${jcabi.jar}" />
</path>
<path id="run.classpath">
<pathelement path="${lockss.jar}" />
<path refid="compile.classpath" />
</path>
<path id="generated.compile.classpath">
<path refid="compile.classpath" />
</path>
<path id="test.compile.classpath">
<path refid="run.classpath" />
<pathelement path="${junit.jar}" />
<pathelement path="${junit.addons.jar}" />
<pathelement path="${httpunit.jar}" />
<pathelement path="${mockito.jar}" />
<pathelement path="${nekohtml.jar}" />
<pathelement path="${objenesis.jar}" />
<pathelement path="${js.jar}" />
<pathelement path="${xmlunit.jar}" />
</path>
<path id="test.run.classpath">
<path refid="test.compile.classpath" />
<pathelement path="${lockss.test.jar}" />
<pathelement path="${lockss.ant.jar}" />
</path>
<!-- Classpath exported to production environment. -->
<path id="prod.run.classpath">
<!-- <path refid="test.run.classpath" /> -->
<path refid="run.classpath" />
</path>
<!-- Packing list isn't really a path but handy way to do it. -->
<path id="prod.packing.list">
<path refid="run.classpath" />
<pathelement path="${openbsd.classpath.file}" />
<pathelement path="${run.props}" />
<pathelement path="${maxheap.script}" />
</path>
<path id="plugins.compile.classpath">
<pathelement path="${lockss.jar}" />
<path refid="compile.classpath" />
</path>
<path id="plugins.test.compile.classpath">
<path refid="test.run.classpath" />
<pathelement path="${lockss.plugins.jar}" />
</path>
<path id="plugins.test.run.classpath">
<path refid="plugins.test.compile.classpath" />
<pathelement path="${lockss.plugins.test.jar}" />
</path>
<path id="tools.compile.classpath">
<pathelement path="${lockss.jar}" />
<pathelement path="${lockss.test.jar}" />
<path refid="compile.classpath" />
<pathelement path="${jdk.tools.jar}" />
<pathelement path="${commons.cli.jar}" />
<pathelement path="${javacsv.jar}" />
</path>
<path id="tools.run.classpath">
<path refid="tools.compile.classpath" />
<pathelement path="${lockss.tools.jar}" />
</path>
<path id="tools.test.compile.classpath">
<path refid="tools.compile.classpath" />
<path refid="test.compile.classpath" />
<pathelement path="${lockss.test.jar}" />
<pathelement path="${lockss.tools.jar}" />
</path>
<path id="tools.test.run.classpath">
<path refid="tools.test.compile.classpath" />
<pathelement path="${lockss.tools.test.jar}" />
</path>
<path id="all.test.run.classpath" >
<path refid="tools.test.run.classpath" />
<pathelement path="${lockss.plugins.jar}"/>
<pathelement path="${lockss.plugins.test.jar}"/>
<pathelement path="${lockss.tools.jar}"/>
</path>
<path id="ant-contrib.classpath">
<pathelement location="${ant-contrib.jar}"/>
</path>
<path id="cobertura.run.classpath">
<path refid="test.run.classpath" />
<pathelement path="${cobertura.jar}" />
</path>
<!-- Need ant jar to compile ant extensions, so include ant's classpath -->
<path id="ant.compile.classpath">
<path refid="compile.classpath" />
<pathelement path="${java.class.path}" />
</path>
<!-- ==================================================================== -->
<!-- Macros -->
<!-- ==================================================================== -->
<!-- dojavac runs javac with standard params -->
<macrodef name="dojavac">
<attribute name="srcdir" />
<attribute name="destdir" />
<attribute name="cpid" />
<element name="javacelem" />
<sequential>
<javac srcdir="@{srcdir}"
destdir="@{destdir}"
source="${javaversion}"
target="${javaversion}"
debug="${javac.debug}"
optimize="${javac.optimize}"
deprecation="${javac.deprecation}"
encoding="utf-8"
fork="${forkc}"
listfiles="${listfiles}"
nowarn="${nowarn}"
memoryMaximumSize="512m"
>
<classpath refid="@{cpid}" />
<javacelem/>
</javac>
</sequential>
</macrodef>
<!-- dotdbxmltree runs tdbxml on all the .tdb files in a tree but is slow -->
<macrodef name="dotdbxmltree">
<attribute name="destdir" />
<attribute name="srcdir" />
<sequential>
<apply executable="scripts/tdb/tdbxml" dir="${basedir}"
addsourcefile="true"
dest="@{destdir}"
verbose="true"
failonerror="true"
failifexecutionfails="true"
relative="false"
parallel="false">
<fileset dir="@{srcdir}" >
<include name="**/*.tdb"/>
</fileset>
<mapper type="glob" from="*.tdb" to="*.xml"/>
<arg value="--viable" />
<arg value="--expected" />
<arg value="-i"/>
<srcfile/>
<arg value="-o"/>
<targetfile/>
</apply>
</sequential>
</macrodef>
<!-- dotdbxmldir runs tdbxml on all the .tdb files in a directory and is fast -->
<macrodef name="dotdbxmldir">
<attribute name="destdir" />
<attribute name="srcdir" />
<sequential>
<apply executable="scripts/tdb/tdbxml"
dir="${basedir}"
dest="@{destdir}"
verbose="true"
failonerror="true"
failifexecutionfails="true"
skipemptyfilesets="true"
parallel="true">
<fileset dir="@{srcdir}" >
<include name="*.tdb"/>
</fileset>
<mapper type="glob" from="*.tdb" to="*.xml"/>
<arg value="--viable" />
<arg value="--expected" />
<arg value="--output-dir=@{destdir}" />
</apply>
</sequential>
</macrodef>
<!-- dojunit runs junit with standard params -->
<macrodef name="dojunit">
<attribute name="cpid" />
<attribute name="usefile" default="true"/>
<attribute name="haltonerror" default="false"/>
<element name="junitelem" />
<sequential>
<if>
<istrue value="@{usefile}" />
<then>
<echo>
Test results in ${test.results}
</echo>
</then>
</if>
<if>
<not>
<equals arg1="${tmpdir}" arg2="${java.io.tmpdir}"/>
</not>
<then>
<echo message="Temp dir: ${tmpdir}" />
</then>
</if>
<junit1 fork="${fork}" printsummary="yes"
haltonfailure="${halt}" failureproperty="failed"
tempdir="${tmpdir}"
filtertrace="${filtertrace}" showoutput="${showoutput}">
<junitelem/>
<jvmarg value="-server"/>
<jvmarg line="${junit.default.args}"/>
<jvmarg line="${jvmargs}"/>
<formatter type="plain" usefile="@{usefile}" />
<classpath refid="@{cpid}" />
<sysproperty key="java.library.path" value="${test.native}"/>
<sysproperty key="java.io.tmpdir" value="${tmpdir}"/>
<sysproperty key="java.awt.headless" value="true"/>
<sysproperty key="org.lockss.unitTesting" value="true"/>
<sysproperty key="org.lockss.defaultLogLevel" value="${loglevel}"/>
<sysproperty key="org.lockss.defaultLogTarget" value="${logtarget}"/>
<sysproperty key="org.lockss.test.idTempDirs" value="${idtempfiles}"/>
<sysproperty key="org.lockss.keepTempFiles" value="${keeptempfiles}"/>
<sysproperty key="org.lockss.test.timeout.shouldnt" value="${timeout}"/>
<sysproperty key="org.lockss.test.skipNetworkTests" value="${nonetwork}"/>
<!-- <sysproperty key="jaxp.debug" value="1"/> -->
<syspropertyset>
<propertyref prefix="sysprop."/>
<mapper type="glob" from="sysprop.*" to="*"/>
</syspropertyset>
</junit1>
</sequential>
</macrodef>
<!-- macro to invoke maven, this requires maven.home exist -->
<macrodef name="maven">
<attribute name="options" default="" />
<attribute name="goal" />
<attribute name="basedir" />
<attribute name="resultproperty" default="maven.result" />
<element name="args" implicit="true" optional="true" />
<sequential>
<java classname="org.codehaus.classworlds.Launcher" fork="true"
dir="@{basedir}" resultproperty="@{resultproperty}">
<jvmarg value="-Xmx512m"/>
<jvmarg value="-Dmaven.multiModuleProjectDirectory=${maven.home}"/>
<classpath>
<fileset dir="${maven.home}/boot">
<include name="*.jar" />
</fileset>
<fileset dir="${maven.home}/lib">
<include name="*.jar" />
</fileset>
</classpath>
<sysproperty key="classworlds.conf" value="${maven.home}/bin/m2.conf" />
<sysproperty key="maven.home" value="${maven.home}" />
<arg line="--batch-mode @{options} @{goal}" />
</java>
</sequential>
</macrodef>
<!-- ==================================================================== -->
<!-- Setup tasks -->
<!-- ==================================================================== -->
<target name="prepare" depends="check.contrib">
<mkdir dir="${classes}" />
<!-- Ant does not always set ant.java.version correctly. (E.g., Ant
1.7.1 w/ Java 1.7 sets it to 1.6). Obtain it from java.version
System property if possible. -->
<propertyregex property="my.ant.java.version"
input="${java.version}"
regexp="^([0-9]+\.[0-9]+).*"
replace="\1"
defaultValue="${ant.java.version}"
/>
<condition property="is-java-ge-1.6">
<or>
<equals arg1="1.6" arg2="${my.ant.java.version}"/>
<equals arg1="1.7" arg2="${my.ant.java.version}"/>
<equals arg1="1.8" arg2="${my.ant.java.version}"/>
</or>
</condition>
<condition property="is-java-le-1.6">
<or>
<equals arg1="1.6" arg2="${my.ant.java.version}"/>
</or>
</condition>
<condition property="is-java-eq-1.7">
<or>
<equals arg1="1.7" arg2="${my.ant.java.version}"/>
</or>
</condition>
<condition property="is-java-eq-1.8">
<or>
<equals arg1="1.8" arg2="${my.ant.java.version}"/>
</or>
</condition>
<condition property="is-java-ge-1.7">
<or>
<equals arg1="1.7" arg2="${my.ant.java.version}"/>
<equals arg1="1.8" arg2="${my.ant.java.version}"/>
</or>
</condition>
<condition property="is-java-ge-1.8">
<or>
<equals arg1="1.8" arg2="${my.ant.java.version}"/>
</or>
</condition>
<!-- Require at least Java 1.8, but allow builds if force is set -->
<condition property="is-satisfy-java-min-version">
<or>
<istrue value="${is-java-ge-1.8}" />
<istrue value="${force}" />
</or>
</condition>
<fail unless="is-satisfy-java-min-version">
Java ${my.ant.java.version} found, 1.8 required
</fail>
<!-- Determine whether java version is compatible with release