-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathGemFireXD.xml
3940 lines (3502 loc) · 180 KB
/
GemFireXD.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
<project name="GemFireXD" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<description>Targets for GemFireXD product</description>
<property name="gemfirexd.version" value="2.0.Beta"/>
<property name="gemfirexd.native.version" value="1.0"/>
<property name="GFXDreleaseTag.name" value="GFXDRelease10"/>
<property name="gemfirexd.product.formalname" value="Pivotal_GemFireXD"/>
<propertyregex property="gfxdversion"
input="${gemfirexd.version}"
regexp="\."
replace=""/>
<!-- include external xml files here -->
<import file="buildfiles/gemfirexd_javadocs.xml"/>
<!-- end of include section -->
<!-- Begin public targets -->
<target name="gfxd-precheckin"
depends="update-git, gfxd-clean, clean, build-all-gfe, gfxd-clean, gfxd-build-all-sanity, gfxd-run-all-tests"/>
<target name="gfxd-precheckin-parallel"
depends="update-git, gfxd-clean, clean, build-all-gfe, gfxd-clean, gfxd-build-all-sanity, gfxd-run-precheckin-tests-parallel"/>
<target name="gfxd-precheckin64-parallel"
depends="update-git, gfxd-clean, clean, build-all-gfe, gfxd-clean, gfxd-build-all-sanity, gfxd-run-precheckin-tests64-parallel"/>
<target name="gfxd-build-all-cc" depends="-gfxd-build-product, -gfxd-build-ddlutils, -gfxd-build-tools, gfxd-compile-all-tests, gfxd-compile-examples"/>
<target name="gfxd-build-all" depends="gfxd-build-product, gfxd-compile-all-tests, gfxd-compile-examples"/>
<!--target name="gfxd-build-all-sanity" depends="gfxd-insane-build-product, gfxd-sane-clean, gfxd-build-all, gfxd-build-odbc64-install"/-->
<!-- skipping insane build since it is not used or shipped currently -->
<target name="gfxd-build-all-sanity" depends="gfxd-build-all"/>
<target name="gfxd-build-product" depends="-gfxd-build-product, -gfxd-build-ddlutils, -gfxd-build-tools, gfxd-compile-hibernate"/>
<target name="gfxd-build-java-product" depends="-gfxd-build-product, -gfxd-build-ddlutils, -gfxd-build-tools"/>
<target name="gfxd-internal-build-product" depends="-gfxd-internal-build-product"/>
<target name="gfxd-build-installer" depends="-gfxd-internal-build-installer"/>
<target name="gfxd-build-vf-dist" depends="-gfxd-internal-build-vf-dist"/>
<target name="gfxd-build-zip-dist" depends="-gfxd-internal-build-zip-dist"/>
<target name="gfxd-build-rpms" depends="-gfxd-internal-build-rpms"/>
<target name="gfxd-build-deb-dist" depends="-gfxd-internal-build-deb-dist"/>
<target name="gfxd-inc-build" depends="-gfxd-internal-core-build, -gfxd-internal-unsealed-jar,-gfxd-internal-pack-product"/>
<target name="gfxd-compile-tests" depends="compile-tests, -gfxd-internal-compile-tests"/>
<target name="gfxd-compile-all-tests" depends="compile-tests, -compile-tests-pass2, -derby-testing, -gfxd-internal-compile-tests"/>
<target name="gfxd-compile-examples" depends="-gfxd-internal-compile-examples"/>
<target name="gfxd-compile-hibernate" depends="-hibernate-dialect-internal-compile"/>
<target name="gfxd-rebuild-shared-library" depends="gfxd-props, gfxd-clean-native-library, -gfxd-rebuild-shared-library, gfxd-pack-shared-library"/>
<target name="gfxd-run-all-tests" depends="gfxd-run-harness-tests, gfxd-parallel-junit, gfxd-run-dunit-tests, gfxd-run-integration-dunit-tests, gfxd-run-wan-dunit-tests, gfxd-run-smoke-tests, gfxd-run-backcomp-dunit-tests"/>
<!-- SB: target name="gfxd-run-all-tests" depends="gfxd-run-harness-tests, gfxd-run-junit-tests, gfxd-run-dunit-tests, gfxd-run-integration-dunit-tests, gfxd-run-wan-dunit-tests, gfxd-run-adonet-tests-only, gfxd-run-smoke-tests"/-->
<target name="gfxd-run-all-tests64" depends="gfxd-run-harness-tests64, gfxd-parallel-junit64, gfxd-run-dunit-tests64, gfxd-run-integration-dunit-tests64, gfxd-run-wan-dunit-tests64, gfxd-run-smoke-tests64, gfxd-run-backcomp-dunit-tests64"/>
<target name="gfxd-run-all-tests-parallel" depends="gfxd-run-harness-tests, gfxd-parallel-junit, gfxd-run-all-dunit-tests-parallel, gfxd-run-smoke-tests"/>
<target name="gfxd-run-all-tests64-parallel" depends="gfxd-run-harness-tests64, gfxd-parallel-junit64, gfxd-run-all-dunit-tests64-parallel, gfxd-run-smoke-tests64"/>
<target name="gfxd-run-all-tests-nowan-parallel" depends="gfxd-run-harness-tests, gfxd-parallel-junit, gfxd-run-all-dunit-tests-nowan-parallel, gfxd-run-smoke-tests"/>
<target name="gfxd-run-all-tests64-nowan-parallel" depends="gfxd-run-harness-tests64, gfxd-parallel-junit64, gfxd-run-all-dunit-tests64-nowan-parallel, gfxd-run-smoke-tests64"/>
<target name="gfxd-run-junit-tests" depends="-derby-junit-all, -gfxd-internal-run-junit-tests"/>
<target name="gfxd-run-junit-tests64" depends="-derby-junit-all64, -gfxd-internal-run-junit-tests64"/>
<target name="gfxd-parallel-junit" depends="-derby-junit-all, gfxd-run-parallel-junit-tests"/>
<target name="gfxd-parallel-junit64" depends="-derby-junit-all64, gfxd-run-parallel-junit-tests64"/>
<target name="gfxd-run-derby-junit-tests" depends="-derby-junit-all"/>
<target name="gfxd-run-derby-junit-tests64" depends="-derby-junit-all64"/>
<target name="gfxd-run-qa-derby-tests" depends="-derby-qa-run-all"/>
<target name="gfxd-run-report-qa-derby-tests" depends="-derby-qa-run-report-all"/>
<target name="gfxd-report-qa-derby-tests" depends="-derby-qa-report-all"/>
<target name="gfxd-run-gemfirexd-junit-tests" depends="-gfxd-internal-run-junit-tests"/>
<target name="gfxd-run-gemfirexd-junit-tests64" depends="-gfxd-internal-run-junit-tests64"/>
<target name="gfxd-run-dunit-tests" depends="-gfxd-internal-run-dunit-tests"/>
<target name="gfxd-run-dunit-tests64" depends="-gfxd-internal-run-dunit-tests64"/>
<target name="gfxd-run-backcomp-dunit-tests" depends="-gfxd-internal-run-backcomp-dunit-tests"/>
<target name="gfxd-run-backcomp-dunit-tests64" depends="-gfxd-internal-run-backcomp-dunit-tests64"/>
<target name="gfxd-run-integration-dunit-tests" depends="-gfxd-internal-run-integration-dunit-tests"/>
<target name="gfxd-run-integration-dunit-tests64" depends="-gfxd-internal-run-integration-dunit-tests64"/>
<target name="gfxd-run-wan-dunit-tests" depends="-gfxd-internal-run-wan-dunit-tests"/>
<target name="gfxd-run-wan-dunit-tests64" depends="-gfxd-internal-run-wan-dunit-tests64"/>
<target name="gfxd-run-smoke-tests" depends="-gfxd-internal-run-smoke-tests"/>
<target name="gfxd-run-smoke-tests64" depends="-gfxd-internal-run-smoke-tests64"/>
<target name="gfxd-run-one-harness-test" depends="-derby-run-harness-test"/>
<target name="gfxd-run-harness-tests" depends="-derby-run-harness-tests"/>
<target name="gfxd-run-harness-tests64" depends="-derby-run-harness-tests64"/>
<target name="gfxd-build-ddlutils" depends="-gfxd-build-ddlutils"/>
<target name="gfxd-invoke-derby-target" depends="-gfxd-props">
<derbyTarget target="${derby.target}"/>
</target>
<target name="gfxd-run-hdfs-tests" depends="run-hdfs-tests,-gfxd-internal-run-hdfs-dunit-tests,-gfxd-internal-run-hdfs-junit-tests"/>
<target name="gfxd-clean">
<antcall target="-gfxd-insane-clean"/>
<antcall target="-gfxd-sane-clean"/>
<antcall target="-gfxd-clean-misc"/>
</target>
<target name="gfxd-insane-clean">
<antcall target="-gfxd-insane-clean"/>
<delete dir="${generated.ant.properties}" quiet="true"/>
</target>
<target name="gfxd-sane-clean">
<antcall target="-gfxd-sane-clean"/>
<delete dir="${generated.ant.properties}" quiet="true"/>
</target>
<target name="gfxd-clean-tests" depends="-gfxd-props, gfxd-clean-versioned-tests">
<derbyTarget target="junit-clean"/>
<delete dir="${gemfirexd.tests.classes.dir}" quiet="true"/>
</target>
<target name="gfxd-insane-build-product">
<antcall target="gfxd-build-java-product">
<param name="derby.sanity" value="false"/>
</antcall>
</target>
<target name="gfxd-sane-build-product">
<antcall target="gfxd-build-java-product">
<param name="derby.sanity" value="true"/>
</antcall>
</target>
<target name="-gfxd-build-ddlutils" depends="-gfxd-props, -gfxd-build-product">
<copy preservelastmodified="true" todir="${gemfirexd.ddlutils.dir}/lib">
<fileset dir="${gemfirexd.product.dir}/lib">
<include name="gemfirexd-client.jar"/>
<include name="gemfirexd.jar"/>
</fileset>
</copy>
<ant antfile="${gemfirexd.ddlutils.dir}/build.xml" target="dist" inheritall="false"/>
<!-- reorganize things a bit (bug #43963) -->
<delete dir="${gemfirexd.ddlutils.dist.dir}" quiet="true"/>
<mkdir dir="${gemfirexd.ddlutils.dist.dir}"/>
<unzip src="${gemfirexd.ddlutils.dir}/dist/${ddlutils.bin.zip}" dest="${gemfirexd.ddlutils.dist.dir}"/>
<!-- copy examples -->
<copy todir="${gemfirexd.ddlutils.dist.dir}/example">
<fileset dir="${gemfirexd.ddlutils.dir}/example">
<exclude name="**/.svn/**"/>
</fileset>
</copy>
<!-- copy full source and docs zip having GemFireXD customized code -->
<copy file="${gemfirexd.ddlutils.dir}/dist/${ddlutils.src.zip}" todir="${gemfirexd.ddlutils.dist.dir}"/>
<copy file="${gemfirexd.ddlutils.dir}/dist/${ddlutils.doc.zip}" todir="${gemfirexd.ddlutils.dist.dir}"/>
<mkdir dir="${gemfirexd.ddlutils.dist.dir}/ant"/>
<copy file="${ant.home}/lib/ant.jar"
tofile="${gemfirexd.ddlutils.dist.dir}/ant/ant.jar"
overwrite="true"/>
<delete dir="${gemfirexd.product.dir}/lib/ddlutils" failonerror="false"/>
<move file="${gemfirexd.ddlutils.dir}/dist/ddlutils" todir="${gemfirexd.product.dir}/lib"/>
</target>
<!-- end public targets -->
<!-- greplogs support -->
<property name="threshold.gfxd.dunit" value="0"/>
<property name="threshold.gfxd.junit" value="0"/>
<property name="threshold.gfxd.smoke" value="5000"/>
<!-- end greplogs support -->
<!-- Begin macrodefs -->
<target name="-define-gfxd-macros"
unless="define-gfxd-macros.done">
<description>Define all gfxd macros in this target.</description>
<property name="define-gfxd-macros.done" value="true"/>
<macrodef name="derbyTarget">
<attribute name="target" default="NOT SET"/>
<attribute name="antargs" default="-Ddummy=true"/>
<sequential>
<property name="generated.ant.properties" value="${osbuild.dir}/tmp_${host.name}"/>
<antcall target="-gen-ant-properties"/>
<derbyTargetNoAntProperties target="@{target}" antargs="@{antargs}"/>
<!-- <delete dir="${generated.ant.properties}" quiet="true"/>-->
</sequential>
</macrodef>
<macrodef name="derbyTargetNoAntProperties">
<attribute name="target" default="NOT SET"/>
<attribute name="antargs" default="-Ddummy=true"/>
<sequential>
<!-- On windows call ant.bat and omit the "noconfig",
On everything else use "ant"-->
<conditional if="isWindows">
<property name="ant.noconfig" value="-Ddummy=1"/>
</conditional>
<property name="ant.noconfig" value="--noconfig"/>
<exec executable="${ant.home}/bin/ant${bat}" dir="${derby.src}" failonerror="true" failifexecutionfails="true">
<env key="JAVA_HOME" value="${javac.primary}"/>
<env key="CLASSPATH" value="${derby.test.classpath}"/>
<env key="ANT_OPTS" value="${ant.opts}"/>
<env key="ODBCSYSINI" value="${gemfirexd.odbc.testdir}"/>
<env key="ODBCINI" value="${gemfirexd.odbc.testdir}"/>
<env key="TEST_MODE_NON_TX" value="${test-mode-non-tx}"/>
<!-- -emacs here to benefit ide/editors that parse output with regexs (e.g. Xcode, emacs, vi).
See http://ant.apache.org/faq.html#emacs-mode
Ideally this should instead be propagated from cmd line args passed into build.sh -->
<arg value="-emacs"/>
<arg value="${ant.noconfig}"/>
<arg value="-Dbuild.properties=${generated.ant.properties}/ant.properties"/>
<arg value="-Dgemfirexd.out.dir=${gemfirexd.out.dir}"/>
<arg value="-Dtest.use-odbc-bridge=${gemfirexd.odbc.testrun}"/>
<arg value="-Dhttp.proxyHost=${http.proxyHost}"/>
<arg value="-Dhttp.proxyPort=${http.proxyPort}"/>
<!-- allow building in background that gets stuck due to jline usage of ij -->
<arg value="-Djline.terminal=scala.tools.jline.UnsupportedTerminal"/>
<arg line="@{target}"/>
<arg value="@{antargs}"/>
</exec>
<!--delete dir="${generated.ant.properties}" quiet="true"/-->
</sequential>
</macrodef>
<macrodef name="create-gemfire-properties">
<attribute name="dir" default="NOT SET"/>
<attribute name="logLevel" default="${logLevel}"/>
<sequential>
<taskdef classname="com.gemstone.gemfire.internal.AvailablePortTask"
classpath="${gemfirexd.unsealed.jar}" name="available-port"/>
<available-port portProperty="derby.test.mcast.port" protocol="socket"/>
<!-- logLevel comes from build.xml#props -->
<echo file="@{dir}/gemfire.properties" level="info">
mcast-port=${derby.test.mcast.port}
log-level=@{logLevel}
</echo>
</sequential>
</macrodef>
</target>
<!-- end macrodefs -->
<!-- All targets below here are private and for internal build use only -->
<target name="-gfxd-insane-clean">
<antcall target="-gfxd-clean">
<param name="derby.sanity" value="false"/>
</antcall>
</target>
<target name="-gfxd-sane-clean">
<antcall target="-gfxd-clean">
<param name="derby.sanity" value="true"/>
</antcall>
</target>
<target name="-gfxd-clean" depends="-gfxd-props, gfxd-clean-tests">
<derbyTargetNoAntProperties target="clobber" antargs="-Dsane=${derby.sanity} -Dsanity=${derby.sanity}"/>
<derbyTargetNoAntProperties target="cleanjars" antargs="-Dsane=${derby.sanity} -Dsanity=${derby.sanity}"/>
<derbyTargetNoAntProperties target="junit-clean" antargs="-Dsane=${derby.sanity} -Dsanity=${derby.sanity}"/>
<delete file="${derby.src}/tools/java/junit.jar" quiet="true"/>
<delete file="${gemfirexd.jar}" quiet="true"/>
<delete file="${gemfirexd.unsealed.jar}" quiet="true"/>
<delete file="${gemfirexd-client.jar}"/>
<delete file="${gemfirexdclient_nojni.jar}"/>
<delete file="${gemfirexd-tools.jar}"/>
<delete file="${gemfirexd.hibernate.dialect.jar}"/>
</target>
<target name="-gfxd-clean-misc" depends="-gfxd-props">
<ant antfile="${gemfirexd.ddlutils.dir}/build.xml" target="clean" inheritall="false"/>
<delete dir="${generated.ant.properties}" quiet="true"/>
<delete dir="${gemfirexd.docs.dir}" quiet="true"/>
<delete dir="${gemfirexd.ado.out.dir}" quiet="true"/>
<delete dir="${gemfirexd.odbc.out.dir}" quiet="true"/>
<delete dir="${gemfirexd.out.dir}/integration" quiet="true"/>
</target>
<target name="-gfxd-build-product" depends="build-product-nodocs, -gfxd-internal-build-product"/>
<target name="gfxd-props" depends="-gfxd-props"/>
<target name="-gfxd-props" depends="props, -define-gfxd-macros">
<!-- Set product property for determining which product. -->
<property name="product" value="gemfirexd"/>
<property name="derby.src" value="${basedir}/gemfirexd"/>
<!-- gemfirexd.version is defined by release.properties -->
<property file="${derby.src}/tools/ant/properties/release.properties"
prefix="gemfirexd."/>
<property name="derby.sanity" value="true"/>
<if>
<istrue value="${derby.sanity}"/>
<then>
<property name="derby.sanity.name" value="sane"/>
</then>
<else>
<property name="derby.sanity.name" value="insane"/>
</else>
</if>
<property name="gemfirexd.out.dir" value="${osbuild.dir}/gemfirexd"/>
<property name="gemfirexd.product.dir" value="${osbuild.dir}/product-gfxd"/>
<property name="gemfirexd.product.lib.dir" value="${gemfirexd.product.dir}/lib"/>
<property name="gemfirexd.docs.dir" value="${gemfirexd.out.dir}/javadocs"/>
<property name="derby.test.results.dir" value="${tests.results.dir}/derby-harness-tests"/>
<property name="derby.test.results64.dir" value="${tests.results64.dir}/derby-harness-tests"/>
<property name="derby.xml.reports.dir" value="${tests.results.dir}/derby-harness-tests/xml-reports"/>
<property name="derby.xml.reports64.dir" value="${tests.results64.dir}/derby-harness-tests/xml-reports"/>
<property name="gemfirexd.tests.src.dir" value="${derby.src}/GemFireXDTests"/>
<property name="gemfirexd.packaging.dir" value="${derby.src}/GemFireXDPackaging"/>
<property name="gemfirexd.examples.src.dir" value="${gemfirexd.packaging.dir}/examples"/>
<property name="gemfirexd.tests.classes.dir" value="${osbuild.dir}/GemFireXDTests/classes"/>
<property name="gemfirexd.callbacks.src.dir" value="${derby.src}/java/engine/com/pivotal/gemfirexd/callbacks"/>
<property name="gemfirexd.callbacks.product.dir" value="${gemfirexd.product.dir}/examples/storedprocedure/com/pivotal/gemfirexd/callbacks"/>
<property name="gemfirexd.ddlutils.dir" value="${derby.src}/java/ddlutils"/>
<property name="gemfirexd.ddlutils.dist.dir" value="${derby.src}/java/ddlutils/dist/ddlutils"/>
<property name="gemfirexd.ddlutils.classes.dir" value="${derby.src}/java/ddlutils/target/classes"/>
<property name="gemfirexd.ddlutils.lib.dir" value="${derby.src}/java/ddlutils/lib"/>
<property name="gemfirexd.examples.classes.dir" value="${gemfirexd.tests.classes.dir}/examples"/>
<echo message="derby.sanity = ${derby.sanity}" level="info"/>
<echo message="gemfirexd.out.dir = ${gemfirexd.out.dir}" level="info"/>
<property name="gemfirexd.jar" value="${gemfirexd.product.lib.dir}/gemfirexd.jar"/>
<property name="gemfirexd-tools.jar" value="${gemfirexd.product.lib.dir}/gemfirexd-tools.jar"/>
<property name="gemfirexd-client.jar" value="${gemfirexd.product.lib.dir}/gemfirexd-client.jar"/>
<property name="gemfirexdclient_nojni.jar" value="${hiddenlib.dir}/gemfirexdclient_nojni.jar"/>
<property name="gemfirexd.unsealed.jar" value="${hiddenlib.dir}/gemfirexd_unsealed.jar"/>
<property name="ddlutils.bin.jar" value="DdlUtils-1.0.jar"/>
<property name="ddlutils.bin.zip" value="DdlUtils-1.0-bin.zip"/>
<property name="ddlutils.doc.zip" value="DdlUtils-1.0-doc.zip"/>
<property name="ddlutils.src.zip" value="DdlUtils-1.0-src.zip"/>
<property name="javatools.dir" value="${derby.src}/tools/java"/>
<property name="derby.jar.dir" value="${gemfirexd.out.dir}/jars/${derby.sanity.name}"/>
<property name="derbyTesting.jar" value="${gemfirexd.out.dir}/jars/${derby.sanity.name}/derbyTesting.jar"/>
<property name="jline.jar" value="${javatools.dir}/${jline.jar.name}"/>
<property name="commons-dbcp.jar" value="${gemfirexd.ddlutils.dir}/lib/${commons-dbcp.jar.name}"/>
<property name="thrift.jar" value="${javatools.dir}/${thrift.jar.name}"/>
<property name="pxf.jar" value="${derby.src}/integration/pxf/${pxf.jar.name}" />
<property name="gfxd.smoketest.bt" value="${tests.classes.dir}/smoketest/gfxd-smoketest.bt"/>
<!-- dependencies for backward compatibility tests -->
<getdependency name="gemfirexd100" type="dir" location="where/sqlfire/100" forClasspath="false"/>
<getdependency name="gemfirexd101" type="dir" location="where/sqlfire/101" forClasspath="false"/>
<getdependency name="gemfirexd102" type="dir" location="where/sqlfire/102" forClasspath="false"/>
<!-- properties for ADO.NET/ODBC (and anything else that is .NET or ODBC) -->
<property name="gemfirexd.csproj.dir" value="${basedir}/ide/gfxd-csharp.vsproj"/>
<property name="gemfirexd.ado.out.dir" value="${gemfirexd.out.dir}/ado-drivers"/>
<property name="gemfirexd.designer.dir" value="${gemfirexd.product.dir}/adonet/GemFireXDDesigner"/>
<property name="gemfirexd.ado.product.dir" value="${gemfirexd.product.dir}/dotnet"/>
<property name="gemfirexd.ado.src.dir" value="${derby.src}/csharp"/>
<property name="gemfirexd.ado.tests.src.dir" value="${gemfirexd.tests.src.dir}/csharp/ado-tests"/>
<property name="gemfirexd.ado.tests.runner" value="${gemfirexd.ado.out.dir}/runCSTests.sh"/>
<property name="gemfirexdclient.dllname" value="gemfirexdclient"/>
<property name="gemfirexdclient.dll" value="${gemfirexd.ado.out.dir}/${gemfirexdclient.dllname}.dll"/>
<property name="gemfirexd.odbc.out.dir" value="${gemfirexd.out.dir}/odbc"/>
<property name="gemfirexd.odbc.tests.src.dir" value="${gemfirexd.tests.src.dir}/odbc"/>
<property name="gemfirexd.odbc.tests.out.dir" value="${osbuild.dir}/GemFireXDTests/odbc"/>
<property name="gemfirexd.odbc.fwk.dir" value="${gcm.dir}/where/cplusplus/odbc_framework/${gf.os}"/>
<property name="gemfirexd.odbc.fwkresults.dir" value="${gemfirexd.odbc.tests.out.dir}/results/fwk"/>
<property name="gemfirexd.odbc.testrun" value="false"/>
<property name="gfxd.odbc.progresstest" value="false"/>
<property name="gfxd.odbcfwktest.iteration" value="1"/>
<getdependency name="gfxd.msi.designer.dir" type="dir" location="where/java/sqlfireDesigner/110" forClasspath="false"/>
<getdependency name="ikvm.dir" type="dir" location="where/csharp/ikvm-${ikvm.version}" forClasspath="false"/>
<getdependency name="nunit.dir" type="dir" location="where/csharp/nunit-${nunit.version}" forClasspath="false"/>
<getdependency name="mono.dir" type="dir" location="where/csharp/mono-${mono.version}" forClasspath="false"/>
<property name="acelinkname" value="ACE.6.1.0" />
<conditional if="isWindows" unless="msbuild.skip">
<property name="gfxd.build.csharp" value="msbuild.exe"/>
<property name="mono.exe" value=""/>
<property name="ikvmc.exe" value="${ikvm.dir}/bin/ikvmc.exe"/>
<property name="ikvmc.pre" value=""/>
<property name="gfxd.build.odbc" value="true"/>
</conditional>
<conditional if="myenv.XBUILD" unless="msbuild.skip">
<property name="gfxd.build.csharp" value="${myenv.XBUILD}"/>
<property name="mono.exe" value="${myenv.MONO}"/>
<property name="ikvmc.exe" value="${mono.exe}"/>
<property name="ikvmc.pre" value="${ikvm.dir}/bin/ikvmc.exe"/>
</conditional>
<conditional if="isLinux">
<property name="gfxd.build.odbc" value="true"/>
</conditional>
<!-- end properties for ADO.NET/ODBC build -->
<path id="gemfirexd.tests.compile.classpath">
<pathelement location="${tests.out.dir}/classes/junit.jar"/>
<pathelement location="${tests.classes.dir}"/>
<pathelement location="${javac.primary}/lib/tools.jar"/>
<pathelement location="${gemfirexd.unsealed.jar}"/>
<pathelement location="${gemfirexd.jar}"/>
<pathelement location="${gemfirexd-client.jar}"/>
<pathelement location="${gemfirexd-tools.jar}"/>
<pathelement location="${gemfirexd.ddlutils.classes.dir}"/>
<pathelement location="${commons-cli.jar}"/>
<pathelement location="${commons-io.jar}"/>
<pathelement location="${derbyTesting.jar}"/>
<pathelement location="${ant.core.lib}"/>
<pathelement location="${derbynet.jar}"/>
<pathelement location="${derbytools.jar}"/>
<pathelement location="${tests.lib.dir}/c3p0-0.9.5-pre6.jar"/>
<pathelement location="${tests.lib.dir}/commons-dbcp-1.4.jar"/>
<pathelement location="${tests.lib.dir}/tomcat-jdbc.jar"/>
<pathelement location="${findbugs-annotations.jar}"/>
<path refid="hadoop.classpath"/>
<pathelement location="${json-simple.jar}"/>
<pathelement location="${pxf.jar}"/>
<fileset dir="${gemfirexd.ddlutils.lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<path id="gemfirexd.integration.tests.compile.classpath">
<fileset dir="${hibernate.414.dir}">
<include name="*.jar"/>
</fileset>
<pathelement location="${tests.out.dir}/classes/junit.jar"/>
<pathelement location="${tests.classes.dir}"/>
<pathelement location="${osbuild.dir}/GemFireXDTests/classes"/>
<pathelement location="${gemfirexd.tests.src.dir}/integration/hibernate"/>
<pathelement location="${product.lib.dir}/${gemfire.jar.name}"/>
<pathelement location="${gemfirexd-client.jar}"/>
<pathelement location="${gemfirexd.hibernate.dialect.jar}"/>
<pathelement location="${findbugs-annotations.jar}"/>
</path>
<path id="gemfirexd.examples.compile.classpath">
<pathelement location="${gemfirexd.unsealed.jar}"/>
<pathelement location="${gemfirexd.jar}"/>
<pathelement location="${ant.core.lib}"/>
<pathelement location="${findbugs-annotations.jar}"/>
</path>
<property name="derby.test.classpath" value="${derby.src}/tools/java/junit.jar${path.separator}${jline.jar}${path.separator}${derby.src}/tools/java/${jakarta-oro.jar.name}${path.separator}${gemfirexd.jar}${path.separator}${gemfirexd-tools.jar}${path.separator}${derbyTesting.jar}${path.separator}${gemfirexd-client.jar}${path.separator}${commons-cli.jar}${path.separator}${commons-dbcp.jar}${path.separator}${gemfirexd.ddlutils.classes.dir}${path.separator}${hadoop-mapreduce-client-core.jar}${path.separator}${hadoop-annotations.jar}${path.separator}${hadoop-auth.jar}${path.separator}${hadoop-common.jar}${path.separator}${hadoop-hdfs.jar}"/>
<!-- dependencies for hibernate dialect -->
<property name="gemfirexd.hibernate.dialect.jar" value="${hiddenlib.dir}/gfxdHibernateDialect.jar"/>
<property name="gemfirexd.hibernate.dialect.src.dir" value="${derby.src}/integration/hibernate"/>
<property name="gemfirexd.hibernate.dialect.build.dir" value="${gemfirexd.out.dir}/integration/hibernate"/>
<path id="gemfirexd.hibernate.compile.v3.classpath">
<pathelement location="${hibernate.332.jar}"/>
<pathelement location="${hibernate.401.jar}"/>
</path>
<path id="gemfirexd.hibernate.compile.v4.classpath">
<pathelement location="${gemfirexd.hibernate.dialect.build.dir}/GemfirexdDialectForHibernateV3/bin/gfxdBaseDialect.jar"/>
<pathelement location="${hibernate.401.jar}"/>
</path>
<!-- Packaging and Distribution Properties -->
<property name="gfxd.zip.prefix" value="gfxd_"/>
<property name="gfxd.odbc.prefix" value="gfxd_odbc"/>
<property name="gfxd_installer.dir" value="gfxd_installer"/>
<property name="gfxd_rpmbuild.dir" value="${gfxd_installer.dir}_rpmbuild"/>
<property name="gemfirexd.maven_dist.dir" value="${osbuild.dir}/gemfirexd_maven_dist"/>
<property name="prts.dist.tmp.dir" value="${osbuild.dir}/prts_dist_tmp"/>
<property name="gfxd_install.dir.name" value="${gemfirexd.product.formalname}_${gfxdversion}"/>
<!-- Set date in correct format for RPM -->
<tstamp>
<format property="rpm.date" pattern="EEE MMM dd yyyy"/>
</tstamp>
</target>
<target name="-gfxd-internal-build-product" depends="-gfxd-internal-jar, -gfxd-internal-unsealed-jar,-gfxd-internal-pack-product"/>
<target name="test-pack" depends="-gfxd-internal-pack-product"/>
<target name="gfxd-pack-windows-product" depends="-gfxd-internal-pack-product-windows"/>
<target name="-gfxd-internal-pack-product-windows" depends="-gfxd-props">
<!-- This target is intended for sanctioned builds and takes a Linux product
and removes Linux specific pieces and adds the windows specific parts -->
<!-- Remove Linux shared libraries -->
<delete file="${gemfirexd.product.lib.dir}/libgemfirexd.so" quiet="true"/>
<delete file="${gemfirexd.product.lib.dir}/libgemfirexd64.so" quiet="true"/>
<!-- SQLF:BComp -->
<copy preservelastmodified="true" file="${scripts.dir}/gfxd.bat"
tofile="${gemfirexd.product.dir}/bin/sqlf.bat" overwrite="true"/>
<!-- Copy .bat script files -->
<copy preservelastmodified="true" todir="${gemfirexd.product.dir}/bin">
<fileset dir="${scripts.dir}">
<include name="gfxd.bat"/>
<include name="dataextractor.bat"/>
<include name="dataextractloader.bat"/>
</fileset>
</copy>
<!-- Sweep bin to make sure execute is enabled -->
<chmod perm="a+x">
<fileset dir="${gemfirexd.product.dir}/bin">
<include name="*"/>
</fileset>
</chmod>
<!-- fix text files to windows style -->
<fixcrlf srcdir="${gemfirexd.product.dir}" eol="crlf" eof="asis" encoding="ISO-8859-1">
<include name="**/*.bat" />
<include name="**/*.java" />
<include name="**/*.sql" />
<include name="**/*.txt" />
<include name="**/*.xml" />
</fixcrlf>
</target>
<target name="-gfxd-internal-pack-product" depends="-gfxd-props">
<!-- copy the what we need out of:
GemFire product tree
gemfirexd release/docfiles
external javadocs -->
<copy preservelastmodified="true" todir="${gemfirexd.product.lib.dir}">
<fileset dir="${product.lib.dir}">
<include name="${commons-logging.jar.name}"/>
<include name="${commons-modeler.jar.name}"/>
<include name="${commons-io.jar.name}"/>
<include name="${jetty9-http.jar.name}"/>
<include name="${jetty9-io.jar.name}"/>
<include name="${jetty9-security.jar.name}"/>
<include name="${jetty9-server.jar.name}"/>
<include name="${jetty9-servlet.jar.name}"/>
<include name="${jetty9-servlet-api.jar.name}"/>
<include name="${jetty9-util.jar.name}"/>
<include name="${jetty9-webapp.jar.name}"/>
<include name="${jetty9-xml.jar.name}"/>
<include name="${mx4j-remote.jar.name}"/>
<include name="${mx4j-tools.jar.name}"/>
<include name="${mx4j.jar.name}"/>
<include name="${pulse-dependencies.jar.name}"/>
<include name="${slf4j-jdk14.jar.name}"/>
<include name="${jackson.jar.name}"/>
</fileset>
</copy>
<copySharedLib todir="${gemfirexd.product.lib.dir}"/>
<copySharedLib todir="${hiddenlib.dir}"/>
<copy preservelastmodified="true" todir="${gemfirexd.product.dir}">
<fileset dir="${gemfirexd.packaging.dir}">
<include name="**"/>
<exclude name="**/.svn"/>
<exclude name="**/mapreduce/gemfirexd-mapreduce.*"/>
</fileset>
</copy>
<replace file="${gemfirexd.product.dir}/examples/mapreduce/README.txt"
token="__VERSION__"
value="${gemfirexd.version}"
summary="yes"/>
<replace file="${gemfirexd.product.dir}/examples/mapreduce/pom.xml"
token="__VERSION__"
value="${gemfirexd.version}"
summary="yes"/>
<!--GemFireXD create the external javadocs and copy -->
<antcall target="-gfxd-external-javadocs"/>
<copy preservelastmodified="true" todir="${gemfirexd.product.dir}">
<fileset dir="${gemfirexd.docs.dir}/external">
<include name="docs/**"/>
</fileset>
</copy>
<!-- copy the scripts and set execute permissions -->
<!-- skip .bat as those are now packed -gfxd-internal-pack-product-windows target -->
<copy preservelastmodified="true" todir="${gemfirexd.product.dir}/bin">
<fileset dir="${scripts.dir}">
<include name="gfxd"/>
<include name="color"/>
<include name="create_hdfsclient_dist.sh"/>
<include name="dataextractor"/>
<include name="dataextractloader"/>
<include name="gfxd-completion.bash"/>
</fileset>
</copy>
<!-- SQLF:BComp -->
<copy preservelastmodified="true" file="${scripts.dir}/gfxd"
tofile="${gemfirexd.product.dir}/bin/sqlf" overwrite="true"/>
<chmod perm="a+x">
<fileset dir="${gemfirexd.product.dir}/bin">
<include name="*"/>
<exclude name="gfxd-completion.bash"/>
</fileset>
</chmod>
<!-- make special gfxd.bat available in hidden/bin in Linux snapshots for hydra -->
<mkdir dir="${hiddenbin.dir}"/>
<copy preservelastmodified="true" file="${scripts.dir}/hiddengfxd.bat"
tofile="${hiddenbin.dir}/gfxd.bat" overwrite="true"/>
<chmod perm="a+x">
<fileset dir="${hiddenbin.dir}">
<include name="*"/>
</fileset>
</chmod>
<!-- Add 3rd Party license file to product-->
<copy file="${basedir}/release/3rdparty_licenses/open_source_licenses-Pivotal_GemFireXD_1.4.1.txt"
todir="${gemfirexd.product.dir}/lib"/>
<path id="misc.docfiles">
<fileset id="misc.docfiles.1" dir="${basedir}/release/images" includes="GemFireXD_190x81.png"/>
<fileset id="misc.docfiles.2" dir="${basedir}/release/docfiles"
includes="copyright.html,support.html,DocIndex.css"/>
</path>
<copy preservelastmodified="true" overwrite="true" todir="${gemfirexd.product.dir}/docs">
<fileset refid="misc.docfiles.1"/>
<fileset refid="misc.docfiles.2"/>
</copy>
<copy file="${basedir}/release/docfiles/gfxd-index.html"
tofile="${gemfirexd.product.dir}/docs/index.html"/>
<copy file="${basedir}/release/installer/Pivotal_EULA.txt"
tofile="${gemfirexd.product.dir}/EULA.txt"/>
<mkdir dir="${gemfirexd.product.dir}/tools"/>
<copy todir="${gemfirexd.product.dir}/tools/vsd" preservelastmodified="true">
<fileset dir="${vsd.dir}"/>
</copy>
<chmod perm="a+x">
<fileset dir="${gemfirexd.product.dir}/tools/vsd">
<include name="bin/vsd*"/>
</fileset>
</chmod>
<!-- copy DBSynchronizer as an example -->
<!-- ensure that it uses only public API -->
<echo level="info" message=" checking for APIs in DBSynchronizer"/>
<mkdir dir="${gemfirexd.out.dir}/lists"/>
<java classname="org.apache.derbyBuild.classlister" fork="yes">
<jvmarg value="-Doutputfile=${gemfirexd.out.dir}/lists/public.list"/>
<jvmarg value="-Dverbose=false"/>
<jvmarg value="-DshowAll=false"/>
<jvmarg value="-DshowOne=true"/>
<jvmarg value="-DfirstLevelOnly=true"/>
<arg value="${derby.src}/java/engine/com/pivotal/gemfirexd/public.properties"/>
<classpath>
<pathelement path="${gemfirexd.out.dir}/classes"/>
</classpath>
</java>
<fail message="Non-public API detected in public example (see ${gemfirexd.out.dir}/lists/public.list)">
<condition>
<resourcecontains resource="${gemfirexd.out.dir}/lists/public.list" substring="internal"/>
</condition>
</fail>
<delete file="${gemfirexd.out.dir}/lists/public.list" quiet="true"/>
<mkdir dir="${gemfirexd.callbacks.product.dir}"/>
<copy file="${gemfirexd.callbacks.src.dir}/DBSynchronizer.java"
tofile="${gemfirexd.callbacks.product.dir}/DBSynchronizer.java"/>
<copy file="${gemfirexd.callbacks.src.dir}/AsyncEventHelper.java"
tofile="${gemfirexd.callbacks.product.dir}/AsyncEventHelper.java"/>
<!-- pack windows specific targets -->
<conditional if="isWindows">
<antcall target="-gfxd-internal-pack-product-windows"/>
</conditional>
</target>
<target depends="-gfxd-props" name="gfxd-import-docs">
<description>Checks out gemfireDocs from that repository.</description>
<delete dir="${build.dir}/packDocs" quiet="true"/>
<property name="svndocs.info.logfile" value="svn-docs-info.log"/>
<delete file="${svndocs.info.logfile}" quiet="true"/>
<echo message="Exporting the following revision from gemfireDocs repository"/>
<echo message="" level="info"/>
<exec executable="svn" failonerror="false" output="${svndocs.info.logfile}">
<arg value="info"/>
<arg value="https://svn.gemstone.com/repos/gemfiredocs/tags/releasedDocs/${GFXDreleaseTag.name}"/>
</exec>
<concat>
<fileset dir="." includes="${svndocs.info.logfile}"/>
</concat>
<property name="docs.logfile" value="svn-docs.log"/>
<echo message="" level="info"/>
<exec executable="svn" failonerror="true" output="${docs.logfile}">
<arg value="export"/>
<arg value="https://svn.gemstone.com/repos/gemfiredocs/tags/releasedDocs/${GFXDreleaseTag.name}"/>
<arg value="${build.dir}/packDocs"/>
</exec>
<delete dir="${gemfirexd.product.dir}/docs/pdf"/>
<delete dir="${gemfirexd.product.dir}/docs/html"/>
</target>
<target name="-gfxd-internal-jar" depends="-gfxd-props, build-product, -gfxd-internal-core-build"/>
<target name="-gfxd-internal-core-build" depends="-gfxd-props">
<!-- need to have the junit.jar to run the testing target -->
<copy file="${junit.jar}"
tofile="${derby.src}/tools/java/junit.jar"/>
<derbyTarget target="buildsource buildjarsclean_gfxd"/>
<javac executable="${javac.primary}/bin/javac" source="1.7" fork="yes" memoryMaximumSize="1024m" debug="on" deprecation="${compile-gemfire.deprecation}" destdir="${gemfirexd.out.dir}/classes" includeAntRuntime="true" nowarn="off" optimize="off" srcdir="${basedir}/gemfirexd" verbose="off" encoding="UTF-8">
<include name="java/engine/com/pivotal/gemfirexd/internal/GemFireXDVersion.java"/>
<include name="java/engine/com/pivotal/pxf/**/*.java"/>
<include name="java/engine/com/pivotal/pxf/**/**/*.java"/>
<include name="java/engine/com/pivotal/gemfirexd/hadoop/**/*.java"/>
<classpath>
<pathelement location="${product.lib.dir}/${gemfire.jar.name}"/>
<pathelement location="${product.lib.dir}/${mx4j.jar.name}"/>
<pathelement location="${product.lib.dir}/${mx4j-remote.jar.name}"/>
<pathelement location="${product.lib.dir}/${mx4j-tools.jar.name}"/>
<pathelement location="${product.lib.dir}/${commons-logging.jar.name}"/>
<pathelement location="${product.lib.dir}/${commons-modeler.jar.name}"/>
<pathelement location="${findbugs-annotations.jar}"/>
<pathelement location="${pxf.jar}"/>
<pathelement location="${slf4j-api.jar}"/>
<pathelement location="${hadoop-common.jar}"/>
<pathelement location="${hadoop-mapreduce-client-core.jar}"/>
</classpath>
</javac>
<delete file="${gemfirexd.jar}" quiet="true"/>
<mkdir dir="${gemfirexd.product.dir}/lib"/>
<mkdir dir="${gemfirexd.product.dir}/ext-lib"/>
<generateVersionResourceFile
resourcefile="GemFireXDVersion.properties"
resourcepath="com/pivotal/gemfirexd/internal"
productname="GemFireXD"
productversion="${gemfirexd.version}"
gemfireversion="${gemfire.version}"
classesdir="${gemfirexd.out.dir}/classes"/>
<echo level="info" message="copy EULA and open_source"/>
<copy file="${basedir}/release/3rdparty_licenses/open_source_licenses-Pivotal_GemFireXD_1.4.1.txt"
todir="${gemfirexd.out.dir}/classes"/>
<copy file="${basedir}/release/installer/Pivotal_EULA.txt" tofile="${gemfirexd.out.dir}/classes/EULA.txt"/>
<zip destfile="${gemfirexd.jar}" duplicate="preserve">
<zipfileset src="${product.lib.dir}/${gemfire.jar.name}">
<exclude name="com/gemstone/gemfire/internal/GemFireVersion.properties"/>
<exclude name="META-INF/**"/>
<exclude name="EULA.txt"/>
<exclude name="open_source_licenses**"/>
<exclude name="vfabric-about.properties"/>
<exclude name="licenses.zip"/>
<exclude name="default-eval-serial.txt"/>
<exclude name="cpuinfo-tool.exe.**"/>
</zipfileset>
<zipfileset dir="${basedir}/release/installer">
<include name="Pivotal_EULA.txt"/>
</zipfileset>
<zipfileset dir="${basedir}/release/3rdparty_licenses">
<include name="open_source_licenses-Pivotal_GemFireXD_1.4.1.txt"/>
</zipfileset>
<zipfileset src="${hbase.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${guava.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${jsr305.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${jna.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${derby.jar.dir}/derby.jar"/>
<zipfileset src="${derby.jar.dir}/derbynet.jar">
<exclude name="META-INF/**"/>
<exclude name="com/pivotal/gemfirexd/internal/impl/tools/sysinfo/Main*.class"/>
<exclude name="com/pivotal/gemfirexd/internal/impl/tools/sysinfo/ZipInfoProperties.class"/>
<exclude name="com/pivotal/gemfirexd/internal/loc/sysinfoMessages.properties"/>
</zipfileset>
<fileset dir="${gemfirexd.out.dir}/classes">
<include name="com/pivotal/gemfirexd/internal/GemFireXDVersion.properties"/>
<include name="com/pivotal/gemfirexd/internal/GemFireXDVersion.class"/>
<include name="com/pivotal/pxf/**/*.class"/>
<include name="com/pivotal/pxf/**/**/*.class"/>
<include name="com/pivotal/gemfirexd/hadoop/**/*.class"/>
<include name="com/pivotal/gemfirexd/internal/engine/hadoop/mapreduce/DumpHDFSData.class"/>
</fileset>
<!-- thrift dependencies -->
<zipfileset src="${thrift.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${slf4j-api.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${commons-lang.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
</zip>
<zip destfile="${gemfirexdclient_nojni.jar}" duplicate="preserve">
<zipfileset src="${derby.jar.dir}/derbyclient.jar"/>
<fileset dir="${gemfirexd.out.dir}/classes">
<include name="com/pivotal/gemfirexd/internal/GemFireXDVersion.properties"/>
<include name="com/pivotal/gemfirexd/jdbc/ClientAttribute.class"/>
</fileset>
<!-- include the classes now shared from GemFire codebase but no JNA ones -->
<fileset dir="${classes.dir}">
<include name="com/gemstone/gemfire/internal/shared/*.class"/>
<include name="com/gemstone/gnu/trove/*.class"/>
<exclude name="com/gemstone/gemfire/internal/shared/*JNA*.class"/>
<exclude name="com/gemstone/gnu/trove/TObjectLongHash*.class"/>
<exclude name="com/gemstone/gnu/trove/TObjectLongIterator.class"/>
</fileset>
<!-- thrift dependencies -->
<zipfileset src="${thrift.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${slf4j-api.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${slf4j-jdk14.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${commons-lang.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
</zip>
<zip destfile="${gemfirexd-client.jar}" duplicate="preserve">
<zipfileset src="${jna.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${derby.jar.dir}/derbyclient.jar"/>
<fileset dir="${gemfirexd.out.dir}/classes">
<include name="com/pivotal/gemfirexd/internal/GemFireXDVersion.properties"/>
<include name="com/pivotal/gemfirexd/jdbc/ClientAttribute.class"/>
</fileset>
<!-- include the classes now shared from GemFire codebase -->
<fileset dir="${classes.dir}">
<include name="com/gemstone/gemfire/internal/shared/*.class"/>
<include name="com/gemstone/gnu/trove/*.class"/>
</fileset>
<!-- thrift dependencies -->
<zipfileset src="${thrift.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${slf4j-api.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${slf4j-jdk14.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
<zipfileset src="${commons-lang.jar}">
<exclude name="META-INF/**"/>
</zipfileset>
</zip>
</target>
<target name="generate-gfxd-eclipse-resources" depends="generate-eclipse-resources, -gfxd-props">
<generateVersionResourceFile
resourcefile="GemFireXDVersion.properties"
resourcepath="com/pivotal/gemfirexd/internal"
productname="GemFireXD"
productversion="${gemfirexd.version}"
gemfireversion="${gemfire.version}"
classesdir="${gemfirexd.out.dir}/classes"/>
</target>
<target name="-gfxd-build-tools" depends="-gfxd-props">
<derbyTarget target="tools_last derbytoolsjar_gfxd"/>
<copy file="${derby.jar.dir}/derbytools.jar"
tofile="${gemfirexd-tools.jar}"
overwrite="true"/>
<copy file="${jline.jar}"
tofile="${gemfirexd.product.dir}/lib/${jline.jar.name}"
overwrite="true"/>
<copy file="${commons-cli.jar}"
tofile="${gemfirexd.product.dir}/lib/${commons-cli.jar.name}"
overwrite="true"/>
</target>
<target name="-gfxd-internal-unsealed-jar" depends="-gfxd-props">
<property name="gemfirexd.jar.tmpdir" value="${osbuild.dir}/jar_tmp"/>
<delete file="${gemfirexd.unsealed.jar}" quiet="true"/>
<unjar src="${gemfirexd.jar}" dest="${gemfirexd.jar.tmpdir}">
<patternset includes="META-INF/MANIFEST.MF"/>
</unjar>
<replace file="${gemfirexd.jar.tmpdir}/META-INF/MANIFEST.MF"
token="Sealed: true" value="Sealed: false"/>
<jar destfile="${gemfirexd.unsealed.jar}"
basedir="${gemfirexd.jar.tmpdir}"
manifest="${gemfirexd.jar.tmpdir}/META-INF/MANIFEST.MF">
<zipfileset src="${gemfirexd.jar}" excludes="META-INF/MANIFEST.MF"/>
<fileset dir="${gemfirexd.jar.tmpdir}" includes="META-INF/MANIFEST.MF"/>
</jar>
<delete file="${gemfirexd.jar.tmpdir}" quiet="true"/>
</target>
<target name="-compile-tests-pass2"
depends="-compile-tests-pass3,
-gfxd-compile-versioned-tests"
description="Compiles all the test code for GemFire"/>
<target name="-compile-tests-pass3"
depends="-gfxd-props, compile-tests">
<description>Compiles the GemFireXD test code that lives in the
GemFire test tree.</description>
<javac executable="${javac.primary}/bin/javac" source="1.7" fork="yes" memoryMaximumSize="1024m" debug="on" deprecation="off" destdir="${tests.classes.dir}" includeAntRuntime="false" nowarn="off" optimize="off" encoding="UTF-8">
<src path="${tests.src.dir}"/>
<classpath refid="gemfirexd.tests.compile.classpath"/>
<include name="hydra/gemfirexd/**"/>
<include name="hydraconfig/gemfirexd/**"/>
<include name="hydratest/version/gemfirexd/**"/>
<include name="sql/**/*.java"/>
<include name="gfxdperf/**/*.java"/>
<include name="cacheperf/comparisons/gemfirexd/**/*.java"/>
<include name="cacheperf/poc/hitachi/*.java"/>
<include name="objects/query/largeobject/**"/>
<include name="objects/query/sector/**"/>
<exclude name="sql/ecotests/**"/>
</javac>
<copy todir="${tests.classes.dir}">
<fileset dir="${tests.src.dir}">
<include name="gfxdperf/**/*.sql"/>
<include name="gfxdperf/tpch/answers/*.out"/>
<include name="gfxdperf/tpch/oracle/cols/*.col"/>
<include name="cacheperf/comparisons/gemfirexd/jpmc/ddl/*.sql"/>
<include name="cacheperf/comparisons/gemfirexd/jpmc/sql/*.sql"/>
<include name="cacheperf/comparisons/gemfirexd/hkjc/ddl/*.sql"/>
<include name="cacheperf/comparisons/gemfirexd/hkjc/poc/ddl/*.sql"/>
<include name="cacheperf/comparisons/gemfirexd/poc/ddl/*.sql"/>
<include name="cacheperf/comparisons/gemfirexd/nanotrader/data/*.dat"/>
<include name="cacheperf/comparisons/gemfirexd/nanotrader/ddl/*.sql"/>
<include name="cacheperf/comparisons/gemfirexd/tpcc/ddl/*.txt"/>
<include name="gfxdperf/**/*.xml"/>
<include name="sql/hadoopHA/networkPartitionClientConfig.xml"/>
<include name="sql/hdfs/*.xml"/>
</fileset>
</copy>
</target>
<target name="-gfxd-internal-compile-tests"
depends="-compile-tests-pass2, -derby-testing-only">
<description>Compiles the GemFireXD test code and the derby tests.
It does not build any GemFire product code.</description>
<mkdir dir="${gemfirexd.tests.classes.dir}"/>
<javac executable="${javac.primary}/bin/javac" source="1.7" fork="yes" memoryMaximumSize="1024m" debug="on" deprecation="off" destdir="${gemfirexd.tests.classes.dir}" includeAntRuntime="true" nowarn="off" optimize="off" encoding="UTF-8">
<src path="${gemfirexd.tests.src.dir}/junit"/>
<src path="${gemfirexd.tests.src.dir}/dunit"/>
<exclude name="**/jarSource/**/*.java"/>
<classpath refid="gemfirexd.tests.compile.classpath"/>
</javac>
<javac executable="${javac.primary}/bin/javac" source="1.7" fork="yes" memoryMaximumSize="1024m" debug="on" deprecation="off" destdir="${gemfirexd.tests.classes.dir}" includeAntRuntime="true" nowarn="off" optimize="off" encoding="UTF-8">
<src path="${gemfirexd.tests.src.dir}/integration/hibernate"/>
<classpath refid="gemfirexd.integration.tests.compile.classpath"/>
</javac>
<copy todir="${gemfirexd.tests.classes.dir}">
<fileset dir="${gemfirexd.tests.src.dir}">
<include name="**/*.xml"/>
<include name="**/*.dtd"/>
<include name="**/*.sql"/>
<include name="**/*.ddl"/>
<include name="**/*.jar"/>
<include name="**/*.dat"/>
<include name="**/*.keystore"/>
<include name="**/*.tbl"/>
</fileset>
</copy>
<copy todir="${tests.classes.dir}">
<fileset dir="${tests.src.dir}">
<include name="sql/testDBs/*.sql"/>
<include name="sql/tpce/*.sql"/>
<include name="sql/tpch/*.sql"/>
<include name="sql/schemas/*/*.sql"/>
<include name="sql/schemas/*.sql"/>
<include name="sql/view/*.sql"/>
<include name="sql/ciIndex/*.sql"/>
<include name="sql/ciIndex/*.dat"/>
<include name="sql/poc/*/*.sql"/>
<include name="sql/poc/*/data/*"/>
</fileset>
</copy>
<!-- Create jars -->
<jar destfile="${extraJars.dir}/tpcc-mapreduce.jar"
basedir="${tests.out.dir}/classes"
includes="cacheperf/comparisons/gemfirexd/tpcc/mapreduce/*.class"/>
<!-- recreate mapreduce.jar for addition of mapreduce classes from gfxd test compile -->
<jar destfile="${extraJars.dir}/mapreduce.jar">
<fileset dir="${tests.out.dir}/classes">
<include name="hydra/*.class"/>
<include name="util/*.class"/>
<include name="hdfs/mapreduce/*.class"/>
<include name="sql/hdfs/mapreduce/*.class"/>
</fileset>
</jar>
</target>
<target name="gfxd-generate-license" depends="-gfxd-props">
<javac executable="${javac.primary}/bin/javac" source="1.7" fork="yes" memoryMaximumSize="1024m" debug="on" deprecation="${compile-gemfire.deprecation}" destdir="${gemfirexd.out.dir}/classes" includeAntRuntime="true" nowarn="off" optimize="off" srcdir="${basedir}/gemfirexd" verbose="off" encoding="UTF-8"
>
<include name="java/engine/com/pivotal/gemfirexd/internal/GemFireXDVersion.java"/>
<classpath>
<pathelement location="${product.lib.dir}/${gemfire.jar.name}"/>
<pathelement location="${product.lib.dir}/${mx4j.jar.name}"/>
<pathelement location="${product.lib.dir}/${mx4j-remote.jar.name}"/>