-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
2599 lines (2358 loc) · 103 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" ?>
<project default="default"
name="VoltDB"
xmlns:if="ant:if"
xmlns:unless="ant:unless"
xmlns:jacoco="antlib:org.jacoco.ant">
<!-- GENERAL HELPER MACROS -->
<macrodef name="envdefault">
<attribute name="prop" />
<attribute name="var" />
<attribute name="default" />
<sequential>
<condition property="@{prop}" value="${env.@{var}}" else="@{default}">
<isset property="env.@{var}" />
</condition>
</sequential>
</macrodef>
<macrodef name="invoke-javac">
<attribute name="srcdir"/>
<attribute name="destdir" default="${build.prod.dir}"/>
<attribute name="excludes" default=""/>
<attribute name="includes" default=""/>
<sequential>
<javac
srcdir="@{srcdir}"
destdir="@{destdir}"
excludes="@{excludes}"
includes="@{includes}"
encoding='UTF-8'
debug='true'
includeAntRuntime='false'>
<compilerarg if:set="use_jacoco" value="-g:lines"/>
<classpath refid="project.classpath" />
</javac>
</sequential>
</macrodef>
<!-- PATHS AND PROPERTIES -->
<tstamp/>
<condition property="isDebug">
<equals arg1="${build}" arg2="debug"/>
</condition>
<condition property="isRelease">
<equals arg1="${build}" arg2="release"/>
</condition>
<condition property="isMemcheck">
<equals arg1="${build}" arg2="memcheck"/>
</condition>
<!-- make environment var foo available as env.foo -->
<property environment="env"/>
<!-- allow env.VOLTBUILD to override "build" property -->
<envdefault prop="build" var="VOLTBUILD" default="release" />
<envdefault prop="jmemcheck" var="JMEMCHECK" default="memcheck" />
<!-- enable code coverage for JUnit's if USE_JACOCO in environment-->
<condition property="use_jacoco" value="true">
<isset property="env.USE_JACOCO"/>
</condition>
<property name="jacoco.agent" value="jacocoagent.jar" />
<property name="jacoco.ant" value="jacocoant.jar" />
<!-- allow env.VOLTPRO to override "voltpro" property -->
<condition property="voltpro" value="${env.VOLTPRO}">
<isset property="env.VOLTPRO"/>
</condition>
<!-- stub the voltpro classpath and src.dir fileset so a fileset with this id always exists -->
<fileset id="voltpro.classpath" file="." excludes="**"/>
<fileset id="voltpro.src.dir" file="." excludes="**"/>
<!-- import the pro build.xml if it exists and is requested -->
<import file="${voltpro}/build.xml" optional="true"/>
<property name='base.dir' location='.' />
<property name='build.dir' location='obj/${build}' />
<property name='build.prod.dir' location='${build.dir}/prod' />
<property name='build.prod.dbmonitor.dir.js' location='${build.prod.dir}/org/voltdb/dbmonitor/js' />
<property name='build.test.dir' location='${build.dir}/test' />
<property name='build.testproc.dir' location='${build.dir}/testprocs' />
<property name='build.testfunc.dir' location='${build.dir}/testfuncs' />
<property name='build.client.dir' location='${build.dir}/clientobj' />
<property name='build.admin.dir' location='${build.dir}/admin' />
<property name='raw.dist.dir' location='${build.dir}' />
<property name='dist.dir' location='${build.dir}/dist' />
<property name='dist.examples.dir' location='${dist.dir}/examples' />
<property name='doc.dir' location='doc' />
<property name='src.gpl.dir' location='src/frontend' />
<property name='src.hsqldb.dir' location='src/hsqldb19b3' />
<property name='src.test.dir' location='tests/frontend' />
<property name='src.testproc.dir' location='tests/testprocs' />
<property name='src.testfunc.dir' location='tests/testfuncs' />
<property name='src.hsqldb.test.dir' location='tests/hsqldb' />
<property name='src.ee.test.dir' location='tests/ee' />
<property name='src.dbmonitor.dir' location='src/frontend/org/voltdb/dbmonitor' />
<property name='src.dbmonitor.dir.js' location='src/frontend/org/voltdb/dbmonitor/js' />
<property name='build.testoutput.dir' location='${build.dir}/testoutput' />
<property name='build.testobjects.dir' location='${build.dir}/testobjects' />
<property name='lib.dir' location='lib' />
<property name='vendor.lib.dir' location='third_party/java/jars' />
<property name='vendor.src.dir' location='third_party/java/src' />
<property name='vendor.cpp.dir' location='third_party/cpp' />
<property name='src.ee.parent.dir' location='src/ee' />
<property name='src.ee.dir' location='src/ee' />
<property name='src.catalog.dir' location='src/catgen' />
<property name='depcache' value='.depcache' />
<property name='deployment.parsergen.dir' location='${src.gpl.dir}/org/voltdb/compiler/deploymentfile' />
<property name='deployment.parsergen.pkg' value='org.voltdb.compiler.deploymentfile' />
<property name='deployment.parsergen.xsd' value='org/voltdb/compiler/DeploymentFileSchema.xsd' />
<!-- os.mac is set when build is running on Mac OSX -->
<condition property="os.mac">
<os family="mac"/>
</condition>
<!-- Default heap size for Volt server (MB) -->
<condition property="volt.server.memory" value="2048">
<not><isset property="volt.server.memory"/></not>
</condition>
<!-- Default heap size for Volt clients+loaders (MB) -->
<condition property="volt.client.memory" value="2048">
<not><isset property="volt.client.memory"/></not>
</condition>
<!-- Default always round trip DDL in junit. Jenkins will turn this off on master -->
<condition property="VOLT_LOG_LEVEL" value="500">
<not><isset property="VOLT_LOG_LEVEL"/></not>
</condition>
<condition property="verifycatalogdebug" value="true">
<not><isset property="verifycatalogdebug"/></not>
</condition>
<!-- Property "kitbuild" is true if we're pulling in both Mac and Linux native libraries -->
<property name="kitbuild" value="false"/>
<!-- Overridden in the Hudson test script. -->
<property name='junit.haltonfailure' value='false' />
<property name="j2se_api" value="http://docs.oracle.com/javase/8/docs/api/"/>
<path id='project.classpath'>
<pathelement location='${build.client.dir}' />
<pathelement location='${build.prod.dir}' />
<pathelement location='${build.testproc.dir}' />
<pathelement location='${build.testfunc.dir}' />
<pathelement location='${build.test.dir}' />
<fileset dir='${lib.dir}'>
<include name='*.jar' />
</fileset>
<fileset dir='${vendor.lib.dir}'>
<include name='*.jar' />
<exclude name='ant.jar' />
<exclude name='classes-java1.7.jar' />
<exclude name='kafka-clients-0.10.2.1.jar' />
<exclude name='yuicompressor-2.4.8.jar' />
</fileset>
<pathelement path="${java.class.path}"/>
<fileset refid="voltpro.classpath"/>
</path>
<patternset id='junit.exclusions'>
<!--Global exclude list for junit -->
<!-- Exclude nested classes -->
<exclude name="**/*$*.class"/>
<!-- Exclude quarantine -->
<exclude name="org/voltdb/quarantine/**/*.class"/>
<!-- Specifig exclude community tests -->
<exclude name="org/voltdb/regressionsuites/TestMaliciousClientSuite.class" /> <!-- fails legacy -->
<exclude name="org/voltdb/regressionsuites/TestIV2BlacklistSaveRestoreSysprocSuite.class" />
<!-- Recorded as ENG-4423 -->
<exclude name="**/TestRejoinFuzz.class" />
<exclude name="**/TestRejoinFuzz2.class" />
<!-- Specific Excluded pro tests -->
<exclude name="**/TestCommandLogServer.class" />
<exclude name="**/TestPauselessRejoinFuzz.class" /> <!-- fails legacy -->
<exclude name="**/TestExportBase.class"/>
<exclude name="**/TestExportBaseSocketExport.class"/>
<exclude name="org/voltdb/regressionsuites/TestIV2BlacklistSaveRestoreSysprocSuite.class" /> <!-- fails legacy -->
</patternset>
<patternset id='junit.all.path'>
<!-- Standard junit fileset -->
<include name='org/hsqldb_voltpatches/**/Test*.class'/>
<include name='org/voltcore/**/Test*.class' />
<include name='org/voltdb/**/Test*.class'/>
<!-- Exclude tests -->
<patternset refid="junit.exclusions"/>
</patternset>
<patternset id='junit.exclude.regression.path'>
<exclude name="org/voltdb/regressionsuites/*.class"/>
</patternset>
<patternset id='junit.regression.h1.path'>
<!-- Standard junit fileset -->
<include name='org/voltdb/regressionsuites/TestA*.class' />
<include name='org/voltdb/regressionsuites/TestB*.class' />
<include name='org/voltdb/regressionsuites/TestC*.class' />
<include name='org/voltdb/regressionsuites/TestD*.class' />
<include name='org/voltdb/regressionsuites/TestE*.class' />
<include name='org/voltdb/regressionsuites/TestF*.class' />
<include name='org/voltdb/regressionsuites/TestG*.class' />
<include name='org/voltdb/regressionsuites/TestH*.class' />
<include name='org/voltdb/regressionsuites/TestI*.class' />
<include name='org/voltdb/regressionsuites/TestJ*.class' />
<include name='org/voltdb/regressionsuites/TestK*.class' />
<include name='org/voltdb/regressionsuites/TestL*.class' />
<include name='org/voltdb/regressionsuites/TestM*.class' />
<include name='org/voltdb/regressionsuites/TestN*.class' />
<include name='org/voltdb/regressionsuites/TestO*.class' />
<include name='org/voltdb/regressionsuites/TestP*.class' />
<!-- Exclude tests -->
<patternset refid='junit.exclusions'/>
</patternset>
<patternset id='junit.regression.h2.path'>
<!-- Standard junit fileset -->
<include name='org/voltdb/regressionsuites/TestQ*.class' />
<include name='org/voltdb/regressionsuites/TestR*.class' />
<include name='org/voltdb/regressionsuites/TestS*.class' />
<include name='org/voltdb/regressionsuites/TestT*.class' />
<include name='org/voltdb/regressionsuites/TestU*.class' />
<include name='org/voltdb/regressionsuites/TestV*.class' />
<include name='org/voltdb/regressionsuites/TestW*.class' />
<include name='org/voltdb/regressionsuites/TestX*.class' />
<include name='org/voltdb/regressionsuites/TestY*.class' />
<include name='org/voltdb/regressionsuites/TestZ*.class' />
<!-- Exclude tests -->
<patternset refid='junit.exclusions'/>
</patternset>
<patternset id='junit.other.p1.path'>
<!-- Standard junit fileset -->
<include name='org/hsqldb_voltpatches/Test*.class' />
<include name='org/voltdb/TestAbstractTopology*.class' />
<include name='org/voltdb/TestBuildString.class' />
<include name='org/voltdb/TestCLReplayAutoCatalogUpgrade.class' />
<include name='org/voltdb/TestExportInsertIntoSelectSuite.class' />
<include name='org/voltdb/TestJoin.class' />
<include name='org/voltdb/TestLeaderElections.class' />
<include name='org/voltdb/TestMemoryResourceMonitor.class' />
<include name='org/voltdb/TestMemoryResourceSnmpTrap.class' />
<include name='org/voltdb/TestPortPirate.class' />
<include name='org/voltdb/TestRejoinEndToEnd.class' />
<include name='org/voltdb/TestReplicatedInvocation.class' />
<include name='org/voltdb/TestRoutingEdgeCases.class' />
<include name='org/voltdb/TestSimpleCJK.class' />
<include name='org/voltdb/TestSnapshot*.class' />
<include name='org/voltdb/TestStartAction.class' />
<include name='org/voltdb/TestStatsAgent.class' />
<include name='org/voltdb/TestStartupRecoverWithMissingHosts.class' />
<include name='org/voltdb/TestStatsProcInputTable.class' />
<include name='org/voltdb/TestStatsProcOutputTable.class' />
<include name='org/voltdb/TestStatsProcProfTable.class' />
<include name='org/voltdb/TestStreamView.class' />
<include name='org/voltdb/TestTableHelper.class' />
<include name='org/voltdb/TestTheHashinator.class' />
<include name='org/voltdb/TestTransactionIdManager.class' />
<include name='org/voltdb/TestTwoSitePlans.class' />
<include name='org/voltdb/TestVarBinaryPartition.class' />
<include name='org/voltdb/TestVoltDB.class' />
<include name='org/voltdb/TestVoltTable.class' />
<include name='org/voltdb/TestVoltTableUtil.class' />
<include name='org/voltdb/TestVoltType.class' />
<include name='org/voltdb/canonicalddl/TestCanonicalDDLThroughSQLcmd.class' />
<include name='org/voltdb/common/TestPermission.class' />
<include name='org/voltdb/compiler/TestAsyncCompilerAgent.class' />
<include name='org/voltdb/compiler/TestCatalogVersionUpgrade.class' />
<include name='org/voltdb/compiler/TestClassMatcher.class' />
<include name='org/voltdb/compiler/TestClusterCompiler.class' />
<include name='org/voltdb/compiler/TestDDLCompiler.class' />
<include name='org/voltdb/compiler/TestLiveDDLCompiler.class' />
<include name='org/voltdb/compiler/TestPartitionDDL.class' />
<include name='org/voltdb/compiler/TestProcCompiler.class' />
<include name='org/voltdb/compiler/TestVoltCompiler.class' />
<include name='org/voltdb/export/TestExportDataSource.class' />
<include name='org/voltdb/export/TestExportGeneration.class' />
<include name='org/voltdb/export/TestExportV2Suite.class' />
<include name='org/voltdb/export/TestExportV2SuitePro.class' />
<include name='org/voltdb/exportclient/TestJDBCExportClient.class' />
<include name='org/voltdb/exportclient/decode/TestEndpointExpander.class' />
<include name='org/voltdb/exportclient/decode/TestJsonObjectDecoer.class' />
<include name='org/voltdb/exportclient/decode/TestJsonStringDecoder.class' />
<include name='org/voltdb/exportclient/decode/TestStringArrayDecoder.class' />
<include name='org/voltdb/exportclient/kafka/TestKafkaExportClient.class' />
<include name='org/voltdb/groovy/TestGroovyDeployment.class' />
<include name='org/voltdb/importer/TestChannelDistributer.class' />
<!-- Exclude tests -->
<patternset refid='junit.exclusions'/>
</patternset>
<patternset id='junit.other.p2.path'>
<!-- Standard junit fileset -->
<include name='org/voltcore/**/Test*.class' />
<include name='org/voltdb/catalog/Test*.class' />
<include name='org/voltdb/client/Test*.class' />
<include name='org/voltdb/TestAdhoc*.class' />
<include name='org/voltdb/TestAdHoc*.class' />
<include name='org/voltdb/TestCLReplayLiveDDLSwitch.class' />
<include name='org/voltdb/TestCLReplayStringParam.class' />
<include name='org/voltdb/TestClientInterface.class' />
<include name='org/voltdb/TestClientInterfaceHandleManager.class' />
<include name='org/voltdb/TestCommandLogReplayState.class' />
<include name='org/voltdb/TestDefaultDeployment.class' />
<include name='org/voltdb/TestEELibraryLoader.class' />
<include name='org/voltdb/TestEmptyCatalog.class' />
<include name='org/voltdb/TestExpectations.class' />
<include name='org/voltdb/TestJavaAssertionsAreOn.class' />
<include name='org/voltdb/TestJdbcDatabaseMetaDataGenerator.class' />
<include name='org/voltdb/TestJSON*.class'/>
<include name='org/voltdb/TestLikeQueries.class' />
<include name='org/voltdb/TestLiveDDLAfterAutoUpgrade.class' />
<include name='org/voltdb/TestLiveDDLSchemaSwitch.class' />
<include name='org/voltdb/TestMixedVersionClusters.class' />
<include name='org/voltdb/TestRejoinWithCatalogUpdates.class' />
<include name='org/voltdb/TestRestoreAgent.class' />
<include name='org/voltdb/TestVoltLicense.class' />
<include name='org/voltdb/catalog/TestCatalogSerialization.class' />
<include name='org/voltdb/catalog/TestDRCatalogDiffs.class' />
<include name='org/voltdb/client/TestClientFeatures.class' />
<include name='org/voltdb/dtxn/Test*.class' />
<include name='org/voltdb/export/TestExportSnapshotPreservesSequenceNumber.class' />
<include name='org/voltdb/export/TestStreamBlockQueue.class' />
<include name='org/voltdb/exportclient/TestElasticSearchHttpExportClient.class' />
<include name='org/voltdb/exportclient/TestExportDecoderBase.class' />
<include name='org/voltdb/exportclient/TestExportToFileClient.class' />
<include name='org/voltdb/exportclient/TestHttpExportClient.class' />
<include name='org/voltdb/exportclient/decode/TestEntityDecoders.class' />
<include name='org/voltdb/expressions/TestExpressionUtil.class' />
<include name='org/voltdb/fullddlfeatures/TestDDLFeatures.class' />
<include name='org/voltdb/iv2/Test*.class' />
<include name='org/voltdb/jdbc/Test*.class' />
<include name='org/voltdb/jni/TestExecutionEngine.class' />
<include name='org/voltdb/jni/TestFragmentProgressUpdate.class' />
<include name='org/voltdb/join/TestDataMigrationSnapshotPlanner.class' />
<include name='org/voltdb/join/TestElasticJoinUtils.class' />
<include name='org/voltdb/messaging/TestVoltMessageSerialization.class' />
<include name='org/voltdb/planner/TestAdHocPlans.class' />
<include name='org/voltdb/planner/TestDeterminism.class' />
<include name='org/voltdb/planner/TestIndexSelection.class' />
<include name='org/voltdb/planner/TestMultipleOuterJoinPlans.class' />
<include name='org/voltdb/planner/TestPlannerTool.class' />
<include name='org/voltdb/planner/TestPlansCount.class' />
<include name='org/voltdb/planner/TestPlansGroupBy.class' />
<include name='org/voltdb/planner/TestPlansJoin.class' />
<include name='org/voltdb/planner/TestPlansMatView.class' />
<include name='org/voltdb/planner/TestPlansScalarSubQueries.class' />
<include name='org/voltdb/planner/TestPlansTPCC.class' />
<include name='org/voltdb/planner/TestPushDownAggregates.class' />
<include name='org/voltdb/planner/TestSelfJoins.class' />
<include name='org/voltdb/planner/TestVerbotenPlans.class' />
<include name='org/voltdb/plannodes/TestNestLoopPlanNode.class' />
<include name='org/voltdb/rejoin/TestIv2RejoinCoordinator.class' />
<include name='org/voltdb/rejoin/TestPauselessRejoinEndToEnd.class' />
<!-- Exclude tests -->
<patternset refid='junit.exclusions'/>
</patternset>
<patternset id='junit.other.p3.path'>
<!-- Standard junit fileset -->
<include name='org/voltdb/dr2/**/Test*.class' />
<include name='org/voltdb/TestExport*.class' />
<!-- Exclude tests -->
<patternset refid='junit.exclusions'/>
</patternset>
<patternset id='junit.other.p4.path'>
<!-- Standard junit fileset -->
<patternset refid="junit.all.path" />
<!-- Exclude tests -->
<patternset refid="junit.exclude.regression.path"/>
<invert>
<patternset refid="junit.other.p1.path"/>
<patternset refid="junit.other.p2.path"/>
<patternset refid="junit.other.p3.path"/>
</invert>
</patternset>
<patternset id='junit.security.path'>
<include name='org/voltdb/TestInvocationAcceptancePolicy.class'/>
<include name='org/voltdb/TestJSONInterface.class'/>
<include name='org/voltdb/TestPortPirate.class'/>
<include name='org/voltdb/TestSSL.class'/>
<include name='org/voltdb/jdbc/TestJDBCSecurityEnabled.class'/>
<include name='org/voltdb/regressionsuites/TestClientPortChannel.class'/>
<include name='org/voltdb/regressionsuites/TestSecurityNoAdminUser.class'/>
<include name='org/voltdb/regressionsuites/TestSecuritySuite.class'/>
<include name='org/voltdb/regressionsuites/TestUpdateCoreSecurityLogs.class'/>
<include name='org/voltdb/regressionsuites/TestUpdateDeployment.class'/>
<include name='org/voltdb/utils/TestCatalogUtil.class'/>
</patternset>
<!-- Workload Tracer Properties -->
<condition property="workload.trace.class" value="">
<not><isset property="workload.trace.class"/></not>
</condition>
<condition property="workload.trace.path" value="">
<not><isset property="workload.trace.path"/></not>
</condition>
<condition property="workload.trace.ignore" value="">
<not><isset property="workload.trace.ignore"/></not>
</condition>
<!--
***************************************
PRIMARY ENTRY POINTS
***************************************
-->
<target name="default"
depends="compile, ee, voltdb.jar, voltdbclient.jar, importbundles"
description="Compile Java classes and C++ JNI library and minify the javascript artifacts."
/>
<target name="check"
depends="licensecheck, default, voltdbipc"
description="Run Java and C++ JNI testcases." >
<condition property="timeoutLength" value="${timeoutLength}" else='18000000'>
<isset property="timeoutLength"/>
</condition>
<exec executable="ant" failonerror="true" timeout="18000000">
<arg value="eecheck" />
<arg value="junit" />
<arg value="sqlcmdtest" />
<arg value="distcheck" />
<arg value="pythonfser" />
<arg value="-Dbuild=${build}" />
<arg value="-DtimeoutLength=${timeoutLength}" />
<arg value="-DVOLT_REGRESSIONS=${VOLT_REGRESSIONS}" />
<arg value="-DVOLT_ENABLEIV2=${VOLT_ENABLEIV2}" />
</exec>
</target>
<target name="check_noclustering"
depends="licensecheck, compile, voltdbipc"
description="Run Java and C++ JNI testcases that apply to a single node." >
<condition property="timeoutLength" value="${timeoutLength}" else='18000000'>
<isset property="timeoutLength"/>
</condition>
<exec executable="ant" failonerror="true" timeout="18000000">
<arg value="eecheck" />
<arg value="junit_noclustering" />
<arg value="distcheck" />
<arg value="pythonfser" />
<arg value="-Dbuild=${build}" />
<arg value="-DtimeoutLength=${timeoutLength}" />
<arg value="-DVOLT_REGRESSIONS=localhsql" />
<arg value="-DVOLT_ENABLEIV2=${VOLT_ENABLEIV2}" />
</exec>
</target>
<target name="check_quick"
depends="compile, voltdbipc"
description="Run a subset of Java testcases and test fragments." >
<condition property="timeoutLength" value="${timeoutLength}" else='480000'>
<isset property="timeoutLength"/>
</condition>
<exec executable="ant" failonerror="true" timeout="1800000">
<arg value="licensecheck" />
<arg value="junit_quick" />
<arg value="distcheck" />
<arg value="-Dbuild=${build}" />
<arg value="-DtimeoutLength=${timeoutLength}" />
<arg value="-DVOLT_REGRESSIONS=${VOLT_REGRESSIONS}" />
<arg value="-DVOLT_ENABLEIV2=${VOLT_ENABLEIV2}" />
</exec>
</target>
<target name="check_sql"
depends="licensecheck, compile, voltdbipc, eecheck"
description="Run Java and C++ JNI testcases stressing sql functionality over process architecture." >
<condition property="timeoutLength" value="${timeoutLength}" else='9000000'>
<isset property="timeoutLength"/>
</condition>
<exec executable="ant" failonerror="true" timeout="9000000">
<arg value="junit_sql" />
<arg value="-Dbuild=${build}" />
<arg value="-DtimeoutLength=${timeoutLength}" />
<arg value="-DVOLT_REGRESSIONS=${VOLT_REGRESSIONS}" />
</exec>
</target>
<target name="quarantine"
depends="compile, ee"
description="Run quarantined tests." >
<condition property="timeoutLength" value="${timeoutLength}" else='480000'>
<isset property="timeoutLength"/>
</condition>
<exec executable="ant" failonerror="true" timeout="1800000">
<arg value="junit_quarantine" />
<arg value="-Dbuild=${build}" />
<arg value="-DtimeoutLength=${timeoutLength}" />
<arg value="-DVOLT_REGRESSIONS=${VOLT_REGRESSIONS}" />
<arg value="-DVOLT_ENABLEIV2=${VOLT_ENABLEIV2}" />
</exec>
</target>
<target name="killstragglers"
description="Run the killstragglers script">
<condition property="set_port" value="-p ${port}" else="">
<isset property="port"/>
</condition>
<exec executable="tools/killstragglers.sh"
failonerror="true" timeout="180000">
<arg value="${set_port}" />
</exec>
</target>
<target name="all"
depends="compile, ee, junit, eecheck, javadoc, jars, bindoc"
description="Do all tasks."
/>
<target name="jars"
depends="voltdb.jar, voltdbfat.jar, voltdbclient.jar, importbundles"
description="Create production JAR files."
/>
<target name="dist"
depends="dist_client, dist_internal"
description="Create VoltDB release packages with examples and documentation."
/>
<target name="bindoc" depends="buildinfo"
description="Generate README for certain bin programs.">
<exec executable="/bin/sh">
<arg value="-c" />
<arg value="${base.dir}/bin/voltadmin help > ${base.dir}/README.voltadmin" />
</exec>
</target>
<!--
***************************************
DISTRIBUTION
***************************************
-->
<target name="javadoc">
<echo message="Building Stored Procedure JavaDoc"/>
<!-- populate selected server/compiler javadoc documentation -->
<javadoc
destdir="doc/javadoc/procedure-api"
Public="true"
version="true"
use="true"
failonerror="true"
additionalparam="-quiet"
Overview='${src.gpl.dir}/overview-public.html'
Windowtitle='VoltDB Server APIs'>
<link href="${j2se_api}"/>
<classpath refid='project.classpath' />
<fileset dir="." defaultexcludes="yes">
<include name="src/frontend/org/voltdb/VoltTable.java" />
<include name="src/frontend/org/voltdb/VoltTableRow.java" />
<include name="src/frontend/org/voltdb/VoltProcedure.java" />
<include name="src/frontend/org/voltdb/SQLStmt.java" />
<include name="src/frontend/org/voltdb/VoltType.java" />
<include name="src/frontend/org/voltdb/InProcessVoltDBServer.java" />
<include name="src/frontend/org/voltdb/importer/AbstractImporter.java" />
<include name="src/frontend/org/voltdb/importer/AbstractImporterFactory.java" />
<include name="src/frontend/org/voltdb/importer/ImporterConfig.java" />
<include name="src/frontend/org/voltdb/types/TimestampType.java" />
<include name="src/frontend/org/voltdb/types/GeographyValue.java" />
<include name="src/frontend/org/voltdb/types/GeographyPointValue.java" />
</fileset>
</javadoc>
<!-- populate selected client javadoc documentation -->
<ant antfile="build-client.xml" target="javadoc" inheritAll="false">
<property name="build" value="${build}"/>
</ant>
</target>
<!-- dist_internal_core populates the core distribution components needed by all
distributions except tools. -->
<target name="dist_internal_core" depends="compile, ee, javadoc, voltdb.jar, voltdbclient.jar, importbundles, bindoc">
<!-- prepare release directory for new content -->
<delete includeemptydirs="true" failonerror='false'>
<fileset dir="${dist.dir}" includes="**/*" />
</delete>
<mkdir dir="${dist.dir}" />
<!-- populate the docs and other core files -->
<copy todir="${dist.dir}/">
<fileset dir="." defaultexcludes="yes">
<include name="README.md"/>
<include name="README.thirdparty"/>
<include name="LICENSE"/>
<include name="bundles/**"/>
<include name="doc/**"/>
<include name="lib/*"/>
<include name="voltdb/**"/>
<exclude name=".gitignore"/>
<exclude name="lib/python" />
<exclude name="doc/tutorials/**" />
<exclude name="voltdb/libvoltdb*" />
</fileset>
</copy>
<!-- create, and leave empty extension directory for user supplied jars -->
<mkdir dir="${dist.dir}/lib/extension"/>
<!-- populate java client and native libraries -->
<copy todir="${dist.dir}/voltdb" flatten="true" >
<fileset dir="voltdb" defaultexcludes="yes">
<include name="voltdbclient-${dist.version}.jar" />
<include name="voltdbclient-${dist.version}-javadoc.jar" />
</fileset>
</copy>
<!-- add the Project and Deployment file schemas to the dist -->
<copy todir="${dist.dir}/tools" file="src/frontend/org/voltdb/compiler/DeploymentFileSchema.xsd"/>
<!-- add misc. other tools in the tools directory -->
<copy todir="${dist.dir}/tools" >
<fileset dir="tools" defaultexcludes="yes">
<include name="toolrunner.py" />
<include name="watch_performance.py" />
<include name="watch_flow.py" />
<include name="voltify" />
<include name="voltify-README.md" />
<include name="voltify.d/**" />
<include name="kafka/**"/>
<include name="lib/**" />
<include name="draingen" />
</fileset>
</copy>
<!-- 3rd party libraries copied to the same location in the dist -->
<copy todir="${dist.dir}/third_party" >
<fileset dir="third_party" defaultexcludes="yes">
<include name="python/**" />
</fileset>
</copy>
<!-- copy license to voltdb dir -->
<copy todir="${dist.dir}/voltdb" file="LICENSE"/>
</target>
<!-- internal target for building a full distribution. dist_internal_core
populates the core components used by the client distribution. -->
<target name="dist_internal" depends="dist_internal_core">
<!-- build the jars for the clients -->
<exec dir='examples/adperformance' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/bank-offers' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/contentionmark' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/callcenter' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/geospatial' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/json-sessions' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/metrocard' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/nbbo' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/positionkeeper' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/uniquedevices' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/voter' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/voltkv' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/windowing' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/windowing-with-ddl' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='examples/fraud-detection' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<!-- build the jars for the tutorials -->
<exec dir='doc/tutorials/helloworld' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<exec dir='doc/tutorials/helloworldrevisited' executable='/usr/bin/env'><arg line="bash run.sh jars"/></exec>
<!-- populate the stuff not handled by dist_internal_core -->
<copy todir="${dist.dir}/">
<fileset dir="." defaultexcludes="yes">
<include name="bin/**"/>
<include name="doc/tutorials/**" />
<include name="examples/**"/>
<include name="lib/python/**"/>
<exclude name="lib/python/vdm/tests/**"/>
<exclude name="**/*.pyc" />
</fileset>
</copy>
<!-- populate the voltdb java libraries -->
<copy todir="${dist.dir}/voltdb" flatten="true" >
<fileset dir="voltdb" defaultexcludes="yes">
<include name="voltdb-${dist.version}.jar" />
<include name="voltdb-${dist.version}-javadoc.jar" />
</fileset>
</copy>
<!-- add tools and support files -->
<dist_tools_macro distlabel="" />
<antcall target="copy_pro_bin"/>
<!-- copy meshmonitor -->
<mkdir dir="${dist.dir}/tools/meshmonitor" />
<ant antfile="${base.dir}/tools/meshmonitor/build.xml"
target="dist" inheritAll="false"
dir="${base.dir}/tools/meshmonitor">
<property name="volthome" value="${base.dir}"/>
<property name="voltdb.build" value="${build}"/>
</ant>
<copy todir="${dist.dir}/tools/meshmonitor">
<fileset dir="${base.dir}/tools/meshmonitor/dist" defaultexcludes="yes">
<include name="**"/>
</fileset>
</copy>
<!-- make shell scripts executable -->
<chmod perm="ugo+rx">
<fileset dir="${dist.dir}" defaultexcludes="yes">
<include name="bin/*"/>
<include name="tools/volt"/>
<include name="examples/**/run.sh"/>
<include name="doc/tutorials/**/run.sh"/>
</fileset>
</chmod>
<!-- create an archive for distribution -->
<exec executable="mv" failonerror="true">
<arg value="${raw.dist.dir}/dist"/>
<arg value="${raw.dist.dir}/voltdb-community-${dist.version}"/>
</exec>
<exec executable="tar" failonerror="true">
<arg value="-cz"/>
<arg value="-C"/>
<arg value="${raw.dist.dir}"/>
<arg value="-f"/>
<arg value="${raw.dist.dir}/voltdb-community-${dist.version}.tar.gz"/>
<arg value="voltdb-community-${dist.version}"/>
</exec>
<!-- move it back to dist directory for downstream dependencies -->
<exec executable="mv" failonerror="true">
<arg value="${raw.dist.dir}/voltdb-community-${dist.version}"/>
<arg value="${raw.dist.dir}/dist"/>
</exec>
</target>
<target name="dist_client" depends="dist_internal_core"
description="Java client package target">
<!-- prepare release directory for new content -->
<delete includeemptydirs="true" failonerror='false'>
<fileset dir="${dist.dir}-client-java" includes="**/*" />
</delete>
<mkdir dir="${dist.dir}-client-java" />
<!-- populate the dist-client-java dir from the superset dist -->
<copy todir="${dist.dir}-client-java/">
<fileset dir="${dist.dir}/" defaultexcludes="yes">
<include name="**/*"/>
<exclude name=".gitignore"/>
<include name="bin/sqlcmd"/>
<exclude name="voltdb/libvoltdb*"/>
<exclude name="voltdb/voltdb-*.jar"/>
</fileset>
</copy>
<!-- make shell scripts executable -->
<chmod perm="ugo+rx">
<fileset dir="${dist.dir}-client-java/" defaultexcludes="yes">
<include name="doc/tutorials/helloworld/run.sh"/>
<include name="examples/adperformance/run.sh"/>
<include name="examples/bank-offers/run.sh"/>
<include name="examples/callcenter/run.sh"/>
<include name="examples/contentionmark/run.sh"/>
<include name="examples/geospatial/run.sh"/>
<include name="examples/json-sessions/run.sh"/>
<include name="examples/metrocard/run.sh"/>
<include name="examples/nbbo/run.sh"/>
<include name="examples/positionkeeper/run.sh"/>
<include name="examples/uniquedevices/run.sh"/>
<include name="examples/voltkv/run.sh"/>
<include name="examples/voter/run.sh"/>
<include name="examples/windowing/run.sh"/>
<include name="examples/windowing-with-ddl/run.sh"/>
<include name="examples/fraud-detection/run.sh"/>
<include name="bin/sqlcmd"/>
</fileset>
</chmod>
</target>
<target name="prep_libvoltdb">
<copy todir='voltdb' overwrite="true">
<fileset dir="${build.dir}/nativelibs">
<include name="libvoltdb-${dist.version}.*"/>
</fileset>
</copy>
<antcall target="call_strip_lib" />
<!-- copy to dir where jar picks it up as well -->
<condition property="jar.nativelib.dir"
value="${build.prod.dir}/org/voltdb/native/Mac/x86_64"
else="${build.prod.dir}/org/voltdb/native/Linux/x86_64">
<isset property="os.mac"/>
</condition>
<copy todir="${jar.nativelib.dir}">
<fileset dir="${base.dir}/voltdb">
<include name="libvoltdb*" />
</fileset>
</copy>
<!-- Call shell script that handles copying native libs so they can be packaged together -->
<exec dir='.' executable="/usr/bin/env" failonerror='true'>
<arg value='bash' />
<arg value='tools/copy-lib.sh'/>
<arg value='${build.prod.dir}/org/voltdb/native/Mac/x86_64' />
<arg value='${dist.version}'/>
<arg value='${kitbuild}'/>
</exec>
</target>
<target name="call_strip_lib" unless="isDebug">
<antcall target="strip_libvoltdb" />
</target>
<!-- Prepare libvoltdb* for distribution. -->
<target name="strip_libvoltdb" depends="strip_libvoltdb_linux, strip_libvoltdb_mac" />
<!-- Linux prepare libvoltdb* for distribution. -->
<target name="strip_libvoltdb_linux" unless="os.mac">
<!-- save the symbols from the shared library -->
<exec dir='${base.dir}/voltdb' executable='/bin/sh'>
<arg line="-c '/usr/bin/objcopy --only-keep-debug libvoltdb-${dist.version}.so ${build.dir}/voltdb-${dist.version}.sym'" />
</exec>
<!-- strip the voltbin shared library (~40x size reduction) -->
<exec dir='${base.dir}/voltdb' executable='/bin/sh'>
<arg line="-c '/usr/bin/strip --strip-debug --strip-unneeded libvoltdb*'"/>
</exec>
<!-- embed the path to the symbol file into the ELF binary -->
<exec dir='${base.dir}/voltdb' executable='/bin/sh'>
<arg line="-c '/usr/bin/objcopy --add-gnu-debuglink=voltdb-${dist.version}.sym libvoltdb-${dist.version}.so'" />
</exec>
</target>
<!-- Mac prepare libvoltdb* for distribution. -->
<target name="strip_libvoltdb_mac" if="os.mac">
<!-- objcopy is unavailable by default on Mac -->
<!-- Just use strip -S since strip-unneeded option is unavailable. -->
<exec dir='${base.dir}/voltdb' executable='/bin/sh'>
<arg line="-c '/usr/bin/strip -S libvoltdb*'"/>
</exec>
</target>
<macrodef name="dist_tools_macro"
description="Copy tools and supporting files to a distribution staging directory">
<attribute name="distlabel"/>
<sequential>
<mkdir dir="${dist.dir}@{distlabel}/bin" />
<mkdir dir="${dist.dir}@{distlabel}/lib" />
<mkdir dir="${dist.dir}@{distlabel}/tools" />
<mkdir dir="${raw.dist.dir}/voltdb-@{distlabel}-${dist.version}" />
<copy todir="${dist.dir}@{distlabel}">
<fileset dir="${base.dir}">
<include name="version.txt" />
</fileset>
</copy>
<copy todir="${dist.dir}@{distlabel}/bin">
<fileset dir="${base.dir}/bin">
<include name="voltadmin" />
</fileset>
</copy>
<copy todir="${dist.dir}@{distlabel}/lib">
<fileset dir="${base.dir}/lib">
<include name="python/**" />
<exclude name="**/*.pyc" />
<exclude name="**/tests/**" />
</fileset>
</copy>
<chmod perm="ugo+rx">
<fileset dir="${dist.dir}@{distlabel}/bin">
<include name="voltadmin" />
</fileset>
</chmod>
<chmod perm="ugo+rx">
<fileset dir="${dist.dir}@{distlabel}/tools">
</fileset>
</chmod>
</sequential>
</macrodef>
<!--
***************************************
CLEANING
***************************************
-->
<target name='clean'
description="Remove all compiled and generated files."
depends="cleantmp, clean_client, clean_deployment_gen,
clean_bindoc, clean_other_gen, clean_kafkaloader">
<exec dir='examples/adperformance' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/bank-offers' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/callcenter' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/contentionmark' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/geospatial' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/json-sessions' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/metrocard' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/nbbo' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/positionkeeper' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/uniquedevices' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/voltkv' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/voter' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/windowing' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/windowing-with-ddl' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='examples/fraud-detection' executable='/usr/bin/env'><arg line="bash run.sh cleanall"/></exec>
<exec dir='doc/tutorials/helloworld' executable='/usr/bin/env'><arg line="bash run.sh clean"/></exec>
<exec dir='doc/tutorials/helloworldrevisited' executable='/usr/bin/env'><arg line="bash run.sh clean"/></exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf obj/*'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf third_party/cpp/pcre2*'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf bundles/*.jar'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf voltdb/*.jar'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf voltdb/*.so voltdb/*.jnilib'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf src/ee/catalog/*'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf src/catgen/out/*'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf src/frontend/org/voltdb/catalog/*.java'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf src/frontend/org/voltcore/utils/DBBPool.java'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf *.jar'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -rf doc/javadoc/procedure-api/* doc/javadoc/java-client-api/*'"/>
</exec>
</target>
<target name="clean_client">
<ant antfile="build-client.xml" target="clean" inheritAll="false">
<property name="build" value="${build}"/>
</ant>
</target>
<target name="clean_kafkaloader">
<ant antfile="build-kafkaloader.xml" target="clean" inheritAll="false">
<property name="build" value="${build}"/>
</ant>
</target>
<target name='cleanugh' description="Remove stack traces and crash dumps dropped by tests">
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -f voltdb_crash*.txt'"/>
</exec>
<exec dir='.' executable='/bin/sh'>
<arg line="-c 'rm -f host*-*-*.txt'"/>
</exec>
</target>
<target name='cleantmp' description="Remove all data files Volt generated in /tmp.">
<exec dir='.' executable='/bin/sh' failonerror='false'>
<arg line="-c 'rm -rf /tmp/myApp*.tmp *.vpt *.digest'"/>
</exec>
</target>
<target name="clean_bindoc" description="Remove generated READMEs.">
<delete file="${base.dir}/README.voltadmin" failonerror="false" />
</target>
<!--
***************************************
JAR BUILDING
***************************************