-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
4943 lines (4384 loc) · 237 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mybuild [
<!ENTITY localxml SYSTEM "./build.xml.local">
]>
<!-- This is the Ant build file for building GemFire.
For more information about Ant see:
http://jakarta.apache.org/ant
For more information about JUnit see:
http://www.junit.org
-->
<project name="gemfire" default="usage" xmlns:bundlor="antlib:com.springsource.bundlor.ant" xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<description>Builds GemFire</description>
<target name="help" depends="usage"/>
<target name="usage">
<description>Prints information about what can be built</description>
<echo>
Commonly used targets:
src Builds all GemFire product jars and libraries
tests Builds all GemFire product jars, libraries, and
test code
build-all Builds product into product tree and tests, does
not run tests
precheckin Does an update-git, clean, build-all, run-gemfirexd-dunit-tests,
run-gfxd-dunit-tests and grep-tests-results.
wan-precheckin Does an update-git, clean, build-all, run-wan-dunit-tests,
gfxd-run-wan-dunit-tests and grep-test-results.
usage (or help) Prints this help information
Available targets:
compile-gemfire Compiles the GemFire Java source code
shared-library Compiles the C++ code and builds the shared libraries
rebuild-shared-library32 Builds 32bit "shared-library" and then "pack-core"
rebuild-shared-library64 Builds 64bit "shared-library" and then "pack-core"
build-gemfire Builds gemfire.jar (compiles all jared classes).
the gemfire.jar is written directly to the product tree
build-templates Builds the templates files using their own ant build file
rebuild-gemfire Builds "build-gemfire" and then
"pack-core"
compile-examples Compiles the GemFire examples and builds examples.jar
compile-tests Compiles the GemFire test code and builds tests.jar
run-java-tests Runs the GemFire Java unit tests
run-java-tests64 Use "-Djunit.testcase=tClass" to run a single test
where "tClass" is the name of a class file.
-DsaveDiskStoreFiles=true will prevent cleanup of disk files
some tests don't always clean up on some platforms.
parallel-junit Runs java unit tests in 5 parallel sites by default
parallel-junit64 Same as parallel-junit except uses 64bit JVMs
run-smoke-tests Runs the GemFire Smoke tests without rebuilding src
run-smoke-tests64 Same as run-smoke-tests except uses 64bit JVMs
run-wan-dunit-tests Runs the WAN 7.0 distributed unit tests
Use "-Dwan.dunit.testcase=tClass" to run a single test
where "tClass" is the name of a class file.
run-wan-dunit-tests64 Runs same as run-wan-dunit-tests except uses 64bit JVMs
run-gemfirexd-dunit-tests Runs DUnits using gemfirexd-dunit-default-tests set
run-gemfirexd-dunit-tests64 Same as run-gemfirexd-dunit-tests except uses 64bit JVMs
run-dunit-tests Runs the GFCache distributed unit tests
run-dunit-tests64 Use "-Ddunit.testcase=tClass" to run a single test
where "tClass" is the name of a class file such as
"com/package/ClassName.class".
Use "-DdunitFromTestClass=com.package.ClassName" to cause
dunit to skip all dunit tests prior to the named test class.
local.conf may be specified with -Dlocal.conf.
-DmergeLogFiles=true will build a mergedLogs.txt file.
-DdunitSites=number may be used in conjuction with a
local.conf to run dunit tests in parallel.
-DuseIPv6=true will insert configuration to use
IPv6 instead of IPv4.
-DsaveDiskStoreFiles=true will prevent cleanup of disk files
some tests don't always clean up on some platforms.
run-quickstart-tests Runs the GemFire QuickStart tests
Use "-Dquickstart.testcase=tClass" to run a single test
where "tClass" is the name of a class file.
run-quickstart-tests64 Same as run-quickstart-tests except uses 64bit JVM
run-container-tests Runs the GemFire container integration tests
Use "-Dcontainer.testcase=tClass" to run a single test
where "tClass" is the name of a class file.
gfxd-run-smoke-tests Runs the gfxd-smoke tests
gfxd-run-smoke-tests64 Same as gfxd-run-smoke-tests except uses 64bit JVM
gfxd-run-harness-tests Runs gfxd derby harness tests
gfxd-run-harness-tests64 Same as gfxd-run-harness-tests except uses 64bit JVM
gfxd-run-junit-tests Runs derby-junit-all and gfxd-internal-run-junit-tests
gfxd-run-junit-tests64 Same as gfxd-run-junit-tests except uses 64bit JVM
gfxd-parallel-junit Runs derby-junit-all and GemFireXD junit tests in 5
parallel sites by default (except Derby junit tests
that are still run in a single site)
gfxd-parallel-junit64 Same as gfxd-parallel-junit except uses 64bit JVM
gfxd-run-dunit-tests Runs DUnits using gfxd.dunit.testlist
gfxd-run-dunit-tests64 Same as gfxd-run-dunit-tests except uses 64bit JVM
gfxd-run-integration-dunit-tests Runs DUnits using gfxd.integration.dunit.testlist
gfxd-run-integration-dunit-tests64 Same as above except uses 64bit JVM
run-moresmoke-tests Runs batterytest the ${moresmoke.bt} test configs.
run-moresmoke-tests64 Same as run-moresmoke-tests except uses 64bit JVM
run-perf-tests Runs batterytest ${perf.bt}. Use
run-perf-tests64 "-Dhosts.perf=host_names" to use remote or multiple
hosts. -DuseIPv6=true will insert configuration to use
IPv6 instead of IPv4.
execute-battery Runs a bt file specified by property -Dbt.file. The
default result directory is .../tests/results/battery,
but this may be overridden with -Dbt.result.dir. Extra
arguments to battery test may be specified with -Dbt.args,
and local.conf may be specified with -Dlocal.conf.
-DmergeLogFiles=true will build a mergedLogs.txt file.
execute-hydra-test Runs a hydra test conf specified by property -Dhydra.conf.
The default result directory is .../tests/results/battery,
but this may be overridden with -Dbt.result.dir.
A local.conf may be specified with -Dlocal.conf.
-DmergeLogFiles=true will build a mergedLogs.txt file.
external-javadocs Builds the external javadocs
internal-javadocs Builds the internal javadocs
tests-javadocs Builds the javadocs for the tests
examples-javadocs Builds the javadocs for the examples
glimpse Builds a glimpse database for GemFire source code
clean Cleans all byproducts of building
clean-tests Cleans the byproducts of compile-tests
clean-gemfire-library clean just the objs files in the gemfire so or dll.
update-svn Updates this gemfire SVN checkout
update-git Runs git pull and confirms latest
import-docs Svn export tagged docs from gemfireDocs Repository to build-artifacts
build-product Packs a product tree into build-artifacts
quick-build-product Same as "build-product" but does not check dependencies
build-installer Creates jarfile installer of product tree
build-pvtl-installer Creates a vFabric jarfile installer of product tree
build-pvtl-dist Creates a vFabric zip distribution of product tree
build-pvtl-rpm Creates a vFabric RPM installer for EL5 and EL6
build-maven-dist Creates maven and checksum artifacts for maven distribution
build-gfmodules Builds GemFireModules from gemfireModules SVN repository
build-databrowser Builds DataBrowser from tools SVN repository
build-pulse Builds Pulse from tools SVN repository
contest-instrument Instruments up to 10 classes with JavaConTest for multithreaded testing
run-findbugs Runs findbugs tool and saved the output to find-bugs.xml
codecoverage-report Creates code coverage report in ${osbuild.dir}/codecoverage-report
Command Line Defines:
-Dcodecoverage=true Turn on JaCoCo agent for code coverage
-Dlocal.gcm.dir=dir Copy all gcm dependencies required into this directory.
-Dmax.memory=n Max heap in MB to use for javadoc and javac tasks.
Default is 1024.
-DdunitSites=n Where n is the number of dunit slices to run
-DuseIPv6=true Use IPv6 instead of IPv4.
-Dproduct.dir=yourProductDir Causes "unit-tests" to compile and run using
yourProductDir.
-Dbt.numTimesToRun=n Where n is the number of complete passes to make over
the unit tests. The default is 1. Test failures are
archived to a pass-c directory where c is the current
pass number.
-DhaltOnFailure=true Causes ant halt on the first unit test failure rather
than finishing to execute the tests.
-DNukeHungTests=false Causes hung tests to hang around to debug.
default - true - kill test and continue on to next one.
-DuseSSH=true Causes hydra to use ssh instead of rsh, default is true.
-DlogLevel=level The log level the unit test system should default to.
One of: all, finest, finer, fine (default),
config, info, warning, severe, none
-DdmVerbose=true turns on DISTRIBUTION_MANAGER.VERBOSE output in dunits and junits
-Donly32=true Only test the 32 bit product
-Donly64=true Only test the 64 bit product
-DdunitLogPerTest=true Causes the log and stat file to be named like TestClass-testName
-DdunitRecordResults=true Saves dunit results in a database (for now, must be on beaverton network)
-DdunitFromTestClass=com.gemstone.gemfire.FooDUnitTest skip all dunits until FooDUnitTest is run. Then run all tests after it.
-DuseHTTP=true Causes the GemFire Management DUnit tests running TestableGfsh to connect to the Manager using HTTP instead of JMX.
</echo>
</target>
<!-- Property reference to environment variables -->
<property environment="myenv"/>
<taskdef resource="com/gemstone/tools/ant/taskdefs/buildtasks.properties"
classpath="${basedir}/buildfiles/taskdefsV12.jar"/>
<!-- Define IF Task from ant-contrib -->
<condition property="antcontrib.taskfile" value="net/sf/antcontrib/antlib.xml">
<antversion atleast="1.8"/>
</condition>
<!-- If antcontrib.taskfile is not set -->
<property name="antcontrib.taskfile" value="net/sf/antcontrib/antcontrib.properties"/>
<taskdef resource="${antcontrib.taskfile}"/>
<!-- Set product property for determining which product to build. -->
<property name="product" value="gemfire"/>
<!-- Verify product property is correct -->
<if>
<not>
<or>
<equals arg1="${product}" arg2="gemfire" casesensitive="true"/>
<equals arg1="${product}" arg2="gemfireXD" casesensitive="true"/>
</or>
</not>
<then>
<fail message="Property product not set to valid value. Must be 'gemfire' or 'gemfireXD"/>
</then>
</if>
<!-- JDK, Java Compiler (javac) and Java Launcher (java) configuration properties -->
<property name="jdk.dir" value="where/jdk"/>
<property name="javac.primary.version" value="1.7.0_72"/>
<property name="javac.secondary.version" value="1.7.0_72"/>
<property name="java.test.version" value="1.7.0_72"/>
<!-- determine machine and os, and if this is a 32 bit only or 64 bit only platform -->
<import file="buildfiles/osplatform.xml"/>
<property name="gcm.dir" value="${myenv.GCMDIR}"/>
<property name="ant.opts" value="${myenv.ANT_OPTS}"/>
<if>
<!-- Win2K+ use "Path" but not making this check OS specific -->
<equals arg1="${myenv.PATH}" arg2="$${myenv.PATH}"/>
<then>
<property name="env.path" value="${myenv.Path}"/>
</then>
<else>
<property name="env.path" value="${myenv.PATH}"/>
</else>
</if>
<!-- import any properties defined in a properties file -->
<available file="${basedir}/build${gf.os}.properties" property="build.os.exists"/>
<conditional if="build.os.exists">
<echo message="Loading properties from ${basedir}/build${gf.os}.properties:" level="info"/>
<property file="${basedir}/build${gf.os}.properties"/>
<concat>
<filelist dir="${basedir}" files="build${gf.os}.properties"/>
</concat>
</conditional>
<available file="${basedir}/build.properties" property="build.props.exists"/>
<conditional if="build.props.exists">
<echo message="Loading properties from ${basedir}/build.properties:" level="info"/>
<property file="${basedir}/build.properties"/>
<concat>
<filelist dir="${basedir}" files="build.properties"/>
</concat>
</conditional>
<!-- Include external xml files here -->
<import file="buildfiles/dependencies.xml"/>
<import file="buildfiles/utilities.xml"/>
<import file="sshAddons.xml"/>
<import file="GemFireXD.xml"/>
<import file="buildfiles/codecoverage.xml"/>
<import file="buildfiles/tests.xml"/>
<import file="buildfiles/container-tests.xml"/>
<if>
<istrue value="${sonar.scan}"/>
<then>
<import file="buildfiles/sonar.xml"/>
</then>
<else>
</else>
</if>
<!-- Define the product version related properties -->
<property name="gemfire.version" value="7.5.Beta"/>
<property name="gemfire.osgi.version" value="7.0"/>
<property name="native.version" value="6.5"/>
<property name="product.formalname" value="vFabric_GemFire"/>
<property name="releaseTag.name" value="Release70"/>
<target name="-keep-going" depends="props">
<keepgoing haltOnFailure="${haltOnFailure}"/>
</target>
<!-- Sets properties used in this build file -->
<target name="props" depends="-custom-deps,setbat" unless="props.done">
<property name="props.done" value="1"/>
<!-- Normalize useIPv6 must true|1|false|0|"" -->
<if>
<or>
<equals arg1="${useIPv6}" arg2="true" casesensitive="false"/>
<equals arg1="${useIPv6}" arg2="1"/>
</or>
<then>
<var name="useIPv6" value="true"/>
</then>
<elseif>
<or>
<equals arg1="${useIPv6}" arg2="false" />
<equals arg1="${useIPv6}" arg2="0"/>
<equals arg1="${useIPv6}" arg2="${useIPv6}"/>
</or>
<then>
<var name="useIPv6" value="false"/>
</then>
</elseif>
<else>
<fail message="useIPv6 must be true|false, the default is false"/>
</else>
</if>
<condition property="library.path" value="DYLD_LIBRARY_PATH">
<os family="mac"/>
</condition>
<property name="library.path" value="LD_LIBRARY_PATH"/>
<!-- these two lines get hostname without requiring cygwin on windows -->
<exec executable="hostname"
failifexecutionfails="false"
outputproperty="myenv.COMPUTERNAME"/>
<property name="host.name" value="${myenv.COMPUTERNAME}"/>
<property name="build.dir" value="${basedir}/build-artifacts"/>
<property name="osbuild.dir" value="${build.dir}/${gf.os}"/>
<echo message="osbuild.dir is ${osbuild.dir}" level="info"/>
<echo message="Running on ${host.name}" level="info"/>
<property name="compile-gemfire.deprecation" value="off"/>
<!-- Do not allow build artifacts to be place on the filer -->
<fail message="Build artifacts cannot reside on the filer (${osbuild.dir}). Please use a build properties file">
<condition>
<and>
<contains string="${osbuild.dir}" substring="shared_build"
casesensitive="false"/>
<not>
<contains string="${osbuild.dir}" substring="shared_build_wdc"
casesensitive="false"/>
</not>
</and>
</condition>
</fail>
<mkdir dir="${osbuild.dir}"/>
<property name="scripts.dir" value="${basedir}/release/scripts"/>
<property name="src.dir" value="${basedir}/src"/>
<property name="src.out.dir" value="${osbuild.dir}/src"/>
<property name="util.dir" value="${basedir}/src/util"/>
<property name="internal.dir" value="${basedir}/src/com/gemstone/gemfire/internal"/>
<property name="classes.dir" value="${osbuild.dir}/classes"/>
<property name="tests.src.dir" value="${basedir}/tests"/>
<property name="version1.tests.src.dir" value="${basedir}/testsVersions/version1"/>
<property name="tests.bin.dir" value="${tests.src.dir}/bin"/>
<property name="tests.lib.dir" value="${tests.src.dir}/lib"/>
<property name="tests.out.dir" value="${osbuild.dir}/tests"/>
<property name="tests.classes.dir" value="${tests.out.dir}/classes"/>
<property name="tests.jar.dir" value="${tests.out.dir}/lib"/>
<property name="generated.tests.src.dir" value="${tests.out.dir}/generated_src"/>
<property name="versionBase.out.dir" value="${osbuild.dir}/testsVersions"/>
<property name="version1.tests.out.dir" value="${versionBase.out.dir}/version1/classes"/>
<property name="version2.tests.out.dir" value="${versionBase.out.dir}/version2/classes"/>
<property name="extraJars.dir" value="${tests.out.dir}/extraJars"/>
<!-- Use properties so they can be overriden from the commandline -->
<property name="smoketest.bt"
value="${tests.classes.dir}/smoketest/smoketest.bt"/>
<property name="moresmoke.bt"
value="${tests.classes.dir}/smoketest/newsmoke.bt"/>
<property name="stats.smoke.bt"
value="${tests.classes.dir}/smoketest/stats.bt"/>
<property name="mem.bt" value="${tests.classes.dir}/smoketest/mem.bt"/>
<property name="perf.bt" value="${tests.classes.dir}/smoketest/perf.bt"/>
<property name="gfxdperf.bt" value="${tests.classes.dir}/smoketest/smokeperf/gfe.bt"/>
<property name="cruisecontrol.bt" value="${tests.classes.dir}/smoketest/newsmoke.bt"/>
<property name="memscale-suite.bt"
value="${tests.classes.dir}/memscale/memscaleSmoke.bt"/>
<property name="sharedLibraryTargets" value="all"/>
<property name="tests.results.dir" value="${osbuild.dir}/tests/results"/>
<property name="tests.results64.dir" value="${tests.results.dir}64"/>
<property name="examples.src.dir" value="${basedir}/examples"/>
<property name="examples.dist.src.dir" value="${basedir}/examples/dist"/>
<property name="examples.dist.classes.dir" value="${osbuild.dir}/examples/dist/classes"/>
<property name="hidden.dir" value="${osbuild.dir}/hidden"/>
<property name="hiddenlib.dir" value="${hidden.dir}/lib"/>
<property name="hiddenbin.dir" value="${hidden.dir}/bin"/>
<property name="hiddenadonet.dir" value="${hidden.dir}/adonet_2008"/>
<property name="glimpse.dir" value="glimpsefiles"/>
<property name="test-mode-non-tx" value="true"/>
<property name="product.dir" value="${osbuild.dir}/product"/>
<property name="odbc.product.dir" value="${osbuild.dir}/product-odbc"/>
<property name="product.lib.dir" value="${product.dir}/lib"/>
<property name="packTargetDir" value="${product.dir}"/>
<property name="templates.dir" location="${basedir}/templates/templates"/>
<property name="templates.classes.dir" location="${osbuild.dir}/templates/classes"/>
<property name="snapZip.dir" location="${build.dir}"/>
<property name="quickstart.src.dir" value="${basedir}/quickstart"/>
<property name="quickstart.hidden.dir" value="${hidden.dir}/quickstart"/>
<property name="helloworld.src.dir" value="${basedir}/helloworld"/>
<property name="helloworld.hidden.dir" value="${hidden.dir}/helloworld"/>
<property name="tutorial.src.dir" value="${basedir}/tutorial"/>
<property name="tutorial.hidden.dir" value="${hidden.dir}/tutorial"/>
<property name="installer.dir" value="${osbuild.dir}/installer"/>
<property name="maven_dist.dir" value="${osbuild.dir}/maven_dist"/>
<property name="docs.dir" value="${osbuild.dir}/javadocs"/>
<property name="last.update.file" value="lastUpdate.txt"/>
<property name="date.pattern" value="MM/dd/yyyy HH:mm:ss z"/>
<property name="junit.timeout" value="2400"/>
<tstamp>
<format pattern="yyyy-MM-dd-hh-mm-ss-SSS" property="sys.build.time"/>
<format pattern="${date.pattern}" property="build.time"/>
</tstamp>
<property name="haltOnFailure" value="false"/>
<property name="NukeHungTests" value="true"/>
<property name="useSSH" value="true"/>
<!-- GemFire system configuration properties -->
<property name="logLevel" value="config"/>
<property name="dmVerbose" value="false"/>
<property name="defaultPort" value="10333"/>
<!-- Set gemfire.debug to true to use the debug "_g" native code library -->
<property name="gemfire.debug" value="false"/>
<!-- ant.make properties -->
<condition property="ant.make" value="gmake">
<os name="SunOs"/>
</condition>
<condition property="ant.make" value="make">
<os name="Linux"/>
</condition>
<condition property="ant.make" value="make">
<os name="Mac OS X"/>
</condition>
<condition property="ant.make" value="make">
<os name="AIX"/>
</condition>
<condition property="msbuild.skip" value="true">
<and>
<os family="windows"/>
<not>
<and>
<available file="${basedir}/bin/vcvars.bat" property="vcvars.found"/>
<isset property="vcvars.found"/>
</and>
</not>
<isset property="useMono"/>
</and>
</condition>
<condition property="ant.make" value="make">
<isset property="msbuild.skip"/>
</condition>
<condition property="ant.make" value="${basedir}/bin/vcvars.bat">
<os family="windows"/>
</condition>
<!-- more 32/64 bit conditional properties -->
<conditional if="isSolaris">
<property name="d32prop" value="-d32"/>
<property name="d64prop" value="-d64"/>
</conditional>
<property name="d32prop" value="-Ddummy=0"/>
<property name="d64prop" value="-Ddummy=0"/>
<conditional if="testJVM">
<echo message="testJVM is ${testJVM}" level="info"/>
<property name="unittest.java32" value="${testJVM}"/>
<property name="unittest.java64" value="${testJVM}"/>
</conditional>
<conditional if="isMac">
<property name="unittest.java32" value="${default.testVM}/bin/java"/>
<property name="unittest.java64" value="${default.testVM}/bin/java"/>
</conditional>
<!-- this 64 bit setting is for Solaris only -->
<!-- we invoke the 64 bit java executable instead of trying to put -d64 on the java vm command line -->
<condition property="unittest.java64" value="${default.testVM}/jre/bin/sparcv9/java">
<os name="SunOs"/>
</condition>
<property name="unittest.java32" value="${default.testVM}/jre/bin/java"/>
<property name="unittest.java64" value="${default.testVM64}/jre/bin/java"/>
<property name="testJVM" value="${unittest.java32}"/>
<!--
Set this to run self-tests with JRockit VM in your product/jre
<property name="jvm.jrockit" value="true"/>
<echo message="jvm.jrockit is ${jvm.jrockit}" level="info"/>
-->
<property name="jvm.jrockit" value="false"/>
<property name="dunitSites" value="1"/>
<property name="max.memory" value="1024"/>
<property name="gemfire.disableManagement" value="false"/>
<conditional if="jvm.jrockit">
<property name="dunit-extra-jvm-args" value=""/>
</conditional>
<conditional unless="jvm.jrockit">
<property name="dunit-extra-jvm-args" value="-XX:+JavaMonitorsInStackTrace -XX:MaxDirectMemorySize=256M"/>
</conditional>
<antcall target="make-last-update"/>
<!-- If svn was manually run then update lastUpdate.txt and build.number -->
<uptodate property="makelastupdate.Required"
srcfile="${build.dir}/${last.update.file}"
targetfile="${basedir}/.svn/entries"/>
<conditional if="makelastupdate.Required">
<antcall target="make-last-update"/>
<property name="skipLastUpdate" value="true"/>
</conditional>
<property name="gemfire.jar.name"
value="gemfire.jar"/>
<property name="gemfire.war.name"
value="gemfire.war"/>
<property name="gemfire-web.jar.name"
value="gemfire-web.jar"/>
<property name="gfSecurityImpl.jar.name"
value="gfSecurityImpl.jar"/>
<property name="gfsh-dependencies.jar.name"
value="gfsh-dependencies.jar"/>
<property name="locator-dependencies.jar.name"
value="locator-dependencies.jar"/>
<property name="pulse-dependencies.jar.name"
value="pulse-dependencies.jar"/>
<property name="server-dependencies.jar.name"
value="server-dependencies.jar"/>
<property name="agent-dependencies.jar.name"
value="agent-dependencies.jar" />
<!-- DO NOT SHIP WITH THIS IN THE PRODUCT LIB -->
<property name="griddb-dependencies.jar.name"
value="griddb-dependencies.jar"/>
</target>
<target depends="props" name="print-build-vars">
<echo message="BUILDVAR: OSBUILDDIR=${osbuild.dir}" level="info"/>
<echo message="BUILDVAR: BASEDIR=${basedir}" level="info"/>
<echo message="BUILDVAR: ANTMAKE=${ant.make}" level="info"/>
<echo message="BUILDVAR: PRODUCTDIR=${product.dir}" level="info"/>
</target>
<target name="import-docs" depends="props">
<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/${releaseTag.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/${releaseTag.name}"/>
<arg value="${build.dir}/packDocs"/>
</exec>
<delete dir="${product.dir}/docs/pdf"/>
<delete dir="${product.dir}/docs/html"/>
</target>
<!-- ============== CruiseControl targets ================ -->
<target name="cruisecontrol-build-and-test-gemfirexd" depends="clean, gfxd-clean, report-versions, gfxd-build-all-sanity, run-quickstart-tests, run-gemfirexd-dunit-tests, parallel-junit, run-smoke-tests, gfxd-run-smoke-tests, gfxd-run-junit-tests, gfxd-run-dunit-tests, gfxd-run-integration-dunit-tests, gfxd-run-wan-dunit-tests, find-hung-dunit-tests"/>
<target name="cruisecontrol-build-and-test-gemfirexd64" depends="clean, gfxd-clean, report-versions, gfxd-build-all-sanity, run-quickstart-tests64, run-gemfirexd-dunit-tests64, parallel-junit64, run-smoke-tests64, gfxd-run-smoke-tests64, gfxd-run-junit-tests64, gfxd-run-dunit-tests64, gfxd-run-integration-dunit-tests64, gfxd-run-wan-dunit-tests64, find-hung-dunit-tests64"/>
<target name="wincc-cruisecontrol-build-and-test-gemfirexd" depends="clean, gfxd-clean, report-versions, gfxd-build-java-product, gfxd-compile-all-tests, run-quickstart-tests, run-gemfirexd-dunit-tests, parallel-junit, run-smoke-tests, gfxd-run-smoke-tests, gfxd-run-junit-tests, gfxd-run-dunit-tests, gfxd-run-integration-dunit-tests, gfxd-run-wan-dunit-tests, find-hung-dunit-tests"/>
<target name="wincc-cruisecontrol-build-and-test-gemfirexd64" depends="clean, gfxd-clean, report-versions, gfxd-build-java-product, gfxd-compile-all-tests, run-quickstart-tests64, run-gemfirexd-dunit-tests64, parallel-junit64, run-smoke-tests64, gfxd-run-smoke-tests64, gfxd-run-junit-tests64, gfxd-run-dunit-tests64, gfxd-run-integration-dunit-tests64, gfxd-run-wan-dunit-tests64, find-hung-dunit-tests64"/>
<target name="cruisecontrol-run-all-gemfirexd-tests-parallel" depends="clean, gfxd-clean, report-versions, gfxd-clean, gfxd-build-all-sanity, run-all-gemfirexd-tests-parallel"/>
<target name="cruisecontrol-run-all-gemfirexd-tests64-parallel" depends="clean, gfxd-clean, report-versions, gfxd-clean, gfxd-build-all-sanity, -keep-going, cc-run-all-gemfirexd-tests64-parallel"/>
<target name="cc-run-all-gemfirexd-tests64-parallel" depends="props, define-test-groups, -keep-going">
<parallel>
<antcall target="run-all-gemfirexd-gfe-tests64"/>
<antcall target="gfxd-run-all-tests64-parallel"/>
</parallel>
</target>
<target name="cruisecontrol-build-and-bt-test-gemfirexd" depends="clean, gfxd-clean, report-versions, gfxd-build-all-sanity, run-cruisecontrolbt-test"/>
<target name="cruisecontrol-build-and-test-gfxd-smokes" depends="clean, gfxd-clean, report-versions, build-all-gfe, gfxd-build-all-sanity, gfxd-run-smoke-tests, run-smoke-tests, run-moresmoke-tests"/>
<target name="cruisecontrol-build-and-bt-test-gf" depends="clean, report-versions, build-all, run-cruisecontrolbt-test"/>
<target name="cruisecontrol-build-and-test-gf" depends="clean, gfxd-clean, report-versions, build-all, gemfirexd-precheckin-tests, find-hung-dunit-tests"/>
<target name="cruisecontrol-build-and-test-mgmt-gf" depends="define-management-tests, clean, gfxd-clean, report-versions, build-all-gfe, run-management-tests"/>
<target name="cruisecontrol-build-and-wan-dunit-test" depends="clean, gfxd-clean, report-versions, build-all-gfe, gfxd-build-all-sanity, run-wan-dunit-tests, gfxd-run-wan-dunit-tests, find-hung-dunit-tests"/>
<target name="run-cruisecontrolbt-test" depends="props, define-test-groups, -keep-going">
<description>Runs the cruisecontrol bt tests. </description>
<delete dir="${tests.results.dir}/cruisecontrolbt"/>
<property name="bt.removePassedTest" value="true"/>
<property name="provideXMLReport" value="true"/>
<property name="bt.provideBugReportTemplate" value="true"/>
<unitTest-battery type="cruisecontrolbt" bt.file="${cruisecontrol.bt}" resultsDir="${tests.results.dir}" threshold="${threshold.cruisecontrolbt}"/>
</target>
<!-- report-versions used only by cruisecontrol targets -->
<target name="report-versions" depends="props">
<description>Reports build number in CruiseControl Log</description>
<!-- Make the manifest -->
<property file="${build.dir}/build.number"/>
<!-- Provide svn information and artifact path in cruisecontrol mail -->
<property name="ccartifact.file" value="${build.dir}/ccpath.txt" />
<touch file="${ccartifact.file}"/>
<echo file="${ccartifact.file}" level="info">ccArtifactPath=${basedir}/${cctimestamp}
</echo>
<conditional if="isWindows">
<replace file="${ccartifact.file}" token="\" value="/"/>
</conditional>
<replace file="${ccartifact.file}" token="/checkout/" value="/artifacts/"/>
<conditional if="isWindows">
<replace file="${ccartifact.file}" token="${cctimestamp}" value="${cctimestamp} on ${host.name}"/>
</conditional>
<property file="${build.dir}/ccpath.txt"/>
<echo message="Running build ${build.number} "/>
<echo message=""/>
<echo message="========================================================================================="/>
<echo message="View this CC's Dashboard for detailed results at:"/>
<echo message="http://${host.name}:8080/dashboard/tab/dashboard"/>
<echo message=""/>
<echo message="If there are failures they can be found at:"/>
<echo message="${ccArtifactPath}"/>
<echo message="or click the failed build on the dashboard"/>
<echo message="========================================================================================="/>
<echo message=""/>
<echo level="info" message="Note: the following svn info isnt accurate if you manually used svn to update specific files."/>
<concat>
<filelist dir="${build.dir}" files="${last.update.file}"/>
</concat>
<echo message=""/>
<delete file="${ccartifact.file}"/>
</target>
<!-- ============== Building GemStone Source Code ================ -->
<target name="build-gf" depends="build-product, compile-tests"/>
<target name="build-all-gfe" depends="build-gf, internal-javadocs"/>
<target name="build-all" depends="build-all-gfe, gfxd-build-all-cc"/>
<target name="build-all-with-docs" depends="build-all, tests-javadocs" description="build product, all tests, plus test and internal javadocs"/>
<!-- Compiles the GemFire source code -->
<target name="compile-gemfire" depends="props">
<description>Compile GemFire source code</description>
<mkdir dir="${classes.dir}"/>
<mkdir dir="${hiddenlib.dir}"/>
<mkdir dir="${product.lib.dir}"/>
<!-- Copy product dependencies to $product.lib.dir -->
<copy todir="${product.lib.dir}">
<fileset file="${activation.jar}"/>
<fileset file="${antlr.jar}"/>
<fileset file="${commons-cli.jar}"/>
<fileset file="${commons-codec.jar}"/>
<fileset file="${commons-configuration.jar}"/>
<fileset file="${commons-io.jar}"/>
<fileset file="${commons-lang.jar}"/>
<fileset file="${commons-logging.jar}"/>
<fileset file="${commons-modeler.jar}"/>
<fileset file="${guava.jar}"/>
<fileset file="${jsr305.jar}"/>
<fileset file="${hadoop-annotations.jar}"/>
<fileset file="${hadoop-auth.jar}"/>
<fileset file="${hadoop-common.jar}"/>
<fileset file="${hadoop-hdfs.jar}"/>
<fileset file="${hadoop-mapreduce-client-core.jar}"/>
<fileset file="${hbase.jar}"/>
<fileset file="${jackson.jar}"/>
<fileset file="${jansi.jar}"/>
<fileset file="${jetty9-http.jar}"/>
<fileset file="${jetty9-io.jar}"/>
<fileset file="${jetty9-security.jar}"/>
<fileset file="${jetty9-server.jar}"/>
<fileset file="${jetty9-servlet.jar}"/>
<fileset file="${jetty9-servlet-api.jar}"/>
<fileset file="${jetty9-util.jar}"/>
<fileset file="${jetty9-webapp.jar}"/>
<fileset file="${jetty9-xml.jar}"/>
<fileset file="${jline-s2.jar}"/>
<fileset file="${jna.jar}"/>
<fileset file="${mail.jar}"/>
<fileset file="${mx4j.jar}"/>
<fileset file="${mx4j-remote.jar}"/>
<fileset file="${mx4j-tools.jar}"/>
<fileset file="${protobuf-java.jar}"/>
<fileset file="${slf4j-api.jar}"/>
<fileset file="${slf4j-jdk14.jar}"/>
<fileset file="${snappy.jar}"/>
<fileset file="${spring-beans.jar}"/>
<fileset file="${spring-core.jar}"/>
<fileset file="${spring-context.jar}"/>
<fileset file="${spring-shell.jar}"/>
<fileset file="${spring-web.jar}"/>
<fileset file="${xom.jar}"/>
</copy>
<conditional if="enable-bundlor">
<conditional unless="disable-bundlor">
<echo level="info" message="Using Bundlor to generate MANIFEST.MF with OSGi headers for antlr.jar..."/>
<bundlor:bundlor inputPath="${antlr.jar}"
outputPath="${product.lib.dir}/${antlr.jar.name}"
bundleVersion="${antlr.version}">
<property name="gemfire.osgi.version" value="${gemfire.osgi.version}"/>
<manifestTemplate>
Bundle-Vendor: Pivotal Software, Inc.
Bundle-Classpath: .
Bundle-ManifestVersion: 2
Bundle-Name: ANTLR
Bundle-SymbolicName: com.gemstone.antlr
Bundle-Description: ANTLR bundle distributed with Pivotal GemFire
Import-Package: com.gemstone.gemfire.cache.query.internal;version="${gemfire.osgi.version}";resolution:=optional, com.gemstone.gemfire.cache.query.internal.index;version="${gemfire.osgi.version}";resolution:=optional, com.gemstone.gemfire.cache.query.internal.parse;version="${gemfire.osgi.version}";resolution:=optional, com.gemstone.gemfire.cache.query.internal.types;version="${gemfire.osgi.version}";resolution:=optional
</manifestTemplate>
</bundlor:bundlor>
</conditional>
</conditional>
<jar jarfile="${product.lib.dir}/${gfsh-dependencies.jar.name}">
<manifest>
<attribute name="Class-Path" value="${gemfire.jar.name} ${gemfire-web.jar.name} ${antlr.jar.name} ${commons-io.jar.name} ${commons-logging.jar.name} ${jansi.jar.name} ${jline-s2.jar.name} ${jna.jar.name} ${spring-core.jar.name} ${spring-shell.jar.name} ${spring-web.jar.name} ${xom.jar.name}"/>
<attribute name="GfshDependencies-Version" value="${gemfire.version}" />
</manifest>
</jar>
<jar jarfile="${product.lib.dir}/${pulse-dependencies.jar.name}">
<manifest>
<attribute name="Class-Path"
value="${commons-logging.jar.name} ${spring-core.jar.name} ${jetty9-http.jar.name} ${jetty9-io.jar.name} ${jetty9-security.jar.name} ${jetty9-server.jar.name} ${jetty9-servlet.jar.name} ${jetty9-servlet-api.jar.name} ${jetty9-util.jar.name} ${jetty9-webapp.jar.name} ${jetty9-xml.jar.name}"/>
<attribute name="PulseDependencies-Version"
value="${gemfire.version}" />
</manifest>
</jar>
<jar jarfile="${product.lib.dir}/${locator-dependencies.jar.name}">
<manifest>
<attribute name="Class-Path" value="${gemfire.jar.name} ${antlr.jar.name} ${commons-cli.jar.name} ${commons-codec.jar.name} ${commons-configuration.jar.name} ${commons-io.jar.name} ${commons-lang.jar.name} ${commons-logging.jar.name} ${guava.jar.name} ${jsr305.jar.name} ${hadoop-annotations.jar.name} ${slf4j-api.jar.name} ${slf4j-jdk14.jar.name} ${hadoop-auth.jar.name} ${hadoop-common.jar.name} ${hadoop-hdfs.jar.name} ${hbase.jar.name} ${jackson.jar.name} ${jansi.jar.name} ${jline-s2.jar.name} ${jna.jar.name} ${snappy.jar.name} ${spring-core.jar.name} ${spring-shell.jar.name} ${jetty9-http.jar.name} ${jetty9-io.jar.name} ${jetty9-security.jar.name} ${jetty9-server.jar.name} ${jetty9-servlet.jar.name} ${jetty9-servlet-api.jar.name} ${jetty9-util.jar.name} ${jetty9-webapp.jar.name} ${jetty9-xml.jar.name} ${xom.jar.name} ${protobuf-java.jar.name}"/>
<attribute name="LocatorDependencies-Version" value="${gemfire.version}" />
</manifest>
</jar>
<jar jarfile="${product.lib.dir}/${server-dependencies.jar.name}">
<manifest>
<attribute name="Class-Path" value="${gemfire.jar.name} ${antlr.jar.name} ${commons-cli.jar.name} ${commons-codec.jar.name} ${commons-configuration.jar.name} ${commons-io.jar.name} ${commons-lang.jar.name} ${commons-logging.jar.name} ${guava.jar.name} ${jsr305.jar.name} ${hadoop-annotations.jar.name} ${slf4j-api.jar.name} ${slf4j-jdk14.jar.name} ${hadoop-auth.jar.name} ${hadoop-common.jar.name} ${hadoop-hdfs.jar.name} ${hbase.jar.name} ${jackson.jar.name} ${jansi.jar.name} ${jline-s2.jar.name} ${jna.jar.name} ${snappy.jar.name} ${spring-core.jar.name} ${spring-shell.jar.name} ${jetty9-http.jar.name} ${jetty9-io.jar.name} ${jetty9-security.jar.name} ${jetty9-server.jar.name} ${jetty9-servlet.jar.name} ${jetty9-servlet-api.jar.name} ${jetty9-util.jar.name} ${jetty9-webapp.jar.name} ${jetty9-xml.jar.name} ${xom.jar.name} ${protobuf-java.jar.name}"/>
<attribute name="ServerDependencies-Version" value="${gemfire.version}" />
</manifest>
</jar>
<jar jarfile="${product.lib.dir}/${agent-dependencies.jar.name}">
<manifest>
<attribute name="Class-Path" value="${gemfire.jar.name} ${antlr.jar.name} ${commons-logging.jar.name} ${commons-modeler.jar.name} ${jna.jar.name} ${mail.jar.name} ${mx4j.jar.name} ${mx4j-remote.jar.name} ${mx4j-tools.jar.name}"/>
<attribute name="AgentDependencies-Version" value="${gemfire.version}" />
</manifest>
</jar>
<!-- DO NOT SHIP WITH THIS IN THE PRODUCT LIB -->
<jar jarfile="${product.lib.dir}/${griddb-dependencies.jar.name}"> <manifest>
<attribute name="Class-Path" value="${commons-cli.jar.name} ${commons-codec.jar.name} ${commons-configuration.jar.name} ${commons-io.jar.name} ${commons-lang.jar.name} ${commons-logging.jar.name} ${guava.jar.name} ${hadoop-auth.jar.name} ${hadoop-common.jar.name} ${hadoop-hdfs.jar.name} ${hbase.jar.name} ${jsr305.jar.name} ${hadoop-annotations.jar.name} ${protobuf-java.jar.name} ${slf4j-api.jar.name} ${slf4j-jdk14.jar.name}"/>
<attribute name="GridDBDependencies-Version" value="${gemfire.version}" />
</manifest>
</jar>
<echo level="info" message="begin: compile all classes using internal proprietary SUN APIs"/>
<!-- begin: compile all classes using internal proprietary SUN APIs -->
<javac executable="${javac.primary}/bin/javac" fork="yes"
memoryMaximumSize="${max.memory}m"
debug="on" deprecation="${compile-gemfire.deprecation}"
destdir="${classes.dir}" includeAntRuntime="true" nowarn="off"
optimize="off" srcdir="${src.dir}" verbose="off" listfiles="yes">
<compilerarg value="-Werror"/>
<compilerarg value="-XDignore.symbol.file"/>
<include name="com/gemstone/gemfire/pdx/internal/unsafe/UnsafeWrapper.java"/>
<include name="com/gemstone/gemfire/management/internal/cli/shell/unsafe/GfshSignalHandler.java"/>
<include name="com/gemstone/gemfire/distributed/internal/unsafe/RegisterSignalHandlerSupport.java"/>
<include name="com/gemstone/gemfire/internal/concurrent/unsafe/Unsafe*.java"/>
<include name="com/gemstone/gemfire/internal/shared/unsafe/*Unsafe*.java"/>
</javac>
<!-- end: compile all classes using internal proprietary SUN APIs -->
<echo level="info" message="begin: compile all other classes"/>
<javac executable="${javac.primary}/bin/javac" source="1.7" fork="yes"
memoryMaximumSize="${max.memory}m" debug="on"
deprecation="${compile-gemfire.deprecation}" destdir="${classes.dir}"
includeAntRuntime="true" nowarn="off" optimize="off"
srcdir="${src.dir}" verbose="off" encoding="UTF-8">
<compilerarg value="-Werror"/>
<include name="com/gemstone/gemfire/**/*.java"/>
<include name="com/gemstone/java/**/*.java"/>
<include name="com/gemstone/org/**/*.java"/>
<exclude name="com/gemstone/**/doc-files/*.java"/>
<!-- begin: include bp.edu.emory.mathcs.backport because it now references GemFire code -->
<include name="com/gemstone/bp/**"/>
<!-- end: include bp.edu.emory.mathcs.backport because it now references GemFire code -->
<!-- begin: include gnu.trove because it now references GemFire code -->
<!-- Compile at least TFloatArrayList explicitly since is used in tests -->
<include name="com/gemstone/gnu/trove/TFloatArrayList.java"/>
<!-- Compile TLongArrayList explicitly for GemFireXD -->
<include name="com/gemstone/gnu/trove/TLongArrayList.java"/>
<include name="com/gemstone/gnu/trove/TIntIntHashMap.java"/>
<include name="com/gemstone/gnu/trove/THashMap.java"/>
<include name="com/gemstone/gnu/trove/PrimeFinder.java"/>
<include name="com/gemstone/gnu/trove/TIntArrayList.java"/>
<include name="com/gemstone/gnu/trove/TLongObjectHashMap.java"/>
<include name="com/gemstone/gnu/trove/TLongHashSet.java"/>
<include name="com/gemstone/gnu/trove/TLongObjectIterator.java"/>
<include name="com/gemstone/gnu/trove/TLongIntHashMap.java"/>
<include name="com/gemstone/gnu/trove/TObjectHash.java"/>
<include name="com/gemstone/gnu/trove/TObjectLongHashMap.java"/>
<include name="com/gemstone/gnu/trove/TObjectHashIterator.java"/>
<!-- end: include gnu.trove because it now references GemFire code -->
<!-- begin: include org.jgroups because it references GemFire code -->
<include name="com/gemstone/org/jgroups/**"/>
<exclude name="com/gemstone/org/jgroups/**/obsolete/**"/>
<!-- end: include org.jgroups because it references GemFire code -->
<!-- Requires JDK 1.4 to compile
<exclude name="com/gemstone/org/jgroups/**/*1_4*"/>
-->
<!-- begin: exclude all classes using internal proprietary SUN APIs -->
<exclude name="com/gemstone/gemfire/pdx/internal/unsafe/UnsafeWrapper.java"/>
<exclude name="com/gemstone/gemfire/management/internal/cli/shell/unsafe/GfshSignalHandler.java"/>
<exclude name="com/gemstone/gemfire/distributed/internal/unsafe/RegisterSignalHandlerSupport.java"/>
<exclude name="com/gemstone/gemfire/internal/concurrent/unsafe/Unsafe*.java"/>
<exclude name="com/gemstone/gemfire/internal/shared/unsafe/*Unsafe*.java"/>
<!-- end: exclude all classes using internal proprietary SUN APIs -->
<!-- Need to exclude the GemFire Management and Monitoring REST API classes; these classes will be packaged
in the 'gemfire' web application WAR file (WEB-INF/classes) dir -->
<exclude name="com/gemstone/gemfire/management/internal/web/**/*.java"/>
<classpath>
<pathelement location="${commons-cli.jar}"/>
<pathelement location="${commons-codec.jar}"/>
<pathelement location="${commons-configuration.jar}"/>
<pathelement location="${commons-lang.jar}"/>
<pathelement location="${commons-logging.jar}"/>
<pathelement location="${commons-modeler.jar}"/>
<pathelement location="${findbugs-annotations.jar}"/>
<pathelement location="${guava.jar}"/>
<pathelement location="${jsr305.jar}"/>
<pathelement location="${hadoop-annotations.jar}"/>
<pathelement location="${hadoop-auth.jar}"/>
<pathelement location="${hadoop-common.jar}"/>
<pathelement location="${hadoop-hdfs.jar}"/>
<pathelement location="${hadoop-mapreduce-client-core.jar}"/>
<pathelement location="${hbase.jar}"/>
<pathelement location="${jackson.jar}"/>
<pathelement location="${jetty9-http.jar}"/>
<pathelement location="${jetty9-io.jar}"/>
<pathelement location="${jetty9-security.jar}"/>
<pathelement location="${jetty9-server.jar}"/>
<pathelement location="${jetty9-servlet.jar}"/>
<pathelement location="${jetty9-servlet-api.jar}"/>
<pathelement location="${jetty9-util.jar}"/>
<pathelement location="${jetty9-webapp.jar}"/>
<pathelement location="${jetty9-xml.jar}"/>
<pathelement location="${jna.jar}"/>
<pathelement location="${mail.jar}"/>
<pathelement location="${mx4j.jar}"/>
<pathelement location="${mx4j-remote.jar}"/>
<pathelement location="${mx4j-tools.jar}"/>
<pathelement location="${protobuf-java.jar}"/>
<pathelement location="${product.lib.dir}/${antlr.jar.name}"/>
<pathelement location="${product.lib.dir}/${gfsh-dependencies.jar.name}"/>
<pathelement location="${product.lib.dir}/${pulse-dependencies.jar.name}"/>
<pathelement location="${slf4j-api.jar}"/>
<pathelement location="${slf4j-jdk14.jar}"/>
<pathelement location="${snappy.jar}"/>
<pathelement location="${spring-aop}"/>
<pathelement location="${spring-aspects.jar}"/>
<pathelement location="${spring-beans.jar}"/>
<pathelement location="${spring-context.jar}"/>
<pathelement location="${spring-context-support.jar}"/>
<pathelement location="${spring-core.jar}"/>
<pathelement location="${spring-expression.jar}"/>
<pathelement location="${spring-shell.jar}"/>
<pathelement location="${spring-web.jar}"/>
<pathelement location="${spring-web-servlet.jar}"/>
<pathelement location="${xom.jar}"/>
</classpath>
</javac>
<!-- Copy DTDs and other files for gemfire.jar -->
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
<include name="com/gemstone/gemfire/**/mbeans-descriptors.xml"/>
<include name="com/gemstone/gemfire/**/*-stats.xml"/>
<include name="com/gemstone/gemfire/admin/doc-files/ds5_0.dtd"/>
<include name="com/gemstone/gemfire/statisticsType.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache3_0.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache4_0.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache4_1.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache5_0.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache5_1.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache5_5.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache5_7.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache5_8.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache6_0.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache6_1.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache6_5.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache6_6.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache7_0.dtd"/>
<include name="com/gemstone/gemfire/cache/doc-files/cache7_5.dtd"/>
<include name="com/gemstone/gemfire/**/*.properties"/>
<include name="com/gemstone/gemfire/internal/publickey.ser"/>
<include name="com/gemstone/gemfire/internal/privatekey.ser"/>
<include name="com/gemstone/gemfire/distributed/internal/MessageQueue.xml"/>
<include name="com/gemstone/gemfire/distributed/internal/javagroups*.txt"/>
<!-- see bug 42751 for why the resource files are excluded -->
<exclude name="com/gemstone/gemfire/internal/i18n/StringIdResourceBundle_*.txt"/>
<include name="com/gemstone/gemfire/internal/gui/**/*.gif"/>
<include name="com/gemstone/gemfire/internal/gui/**/*.jpg"/>
<include name="com/gemstone/gemfire/internal/gui/**/*.txt"/>
<include name="com/gemstone/gemfire/internal/gui/**/*.html"/>
<include name="com/gemstone/gemfire/internal/gui/**/*.properties"/>
<include name="com/gemstone/org/jgroups/conf/*.xml"/>
<include name="com/gemstone/org/jgroups/conf/*.dtd"/>
<include name="com/gemstone/gemfire/admin/jmx/internal/doc-files/mbeans-descriptors.dtd"/>
<include name="com/gemstone/gemfire/management/internal/cli/commands/support/gfmon.html"/>
<!-- need to explicitly set the logging implementation for commons-logging -->
<include name="commons-logging.properties"/>
</fileset>
</copy>
<copy file="${src.dir}/com/gemstone/gemfire/cache/doc-files/cache5_7.dtd" preservelastmodified="true" tofile="${classes.dir}/com/gemstone/gemfire/cache/doc-files/cache5_7.dtd"/>
<echo level="info" message="copy EULA and open_source"/>
<copy file="${basedir}/release/3rdparty_licenses/open_source_licenses-VMware_vFabric_GemFire_7.0.1.txt" todir="${classes.dir}"/>
<copy file="${basedir}/release/installer/Pivotal_EULA.txt" tofile="${classes.dir}/EULA.txt"/>
<!-- Make the text version the JavaGroups magic number file -->
<java classname="com.gemstone.org.jgroups.conf.MagicNumberReader" failonerror="true" fork="true" output="${classes.dir}/com/gemstone/org/jgroups/conf/jg-magic-map.txt" logError="true">
<classpath>
<pathelement path="${classes.dir}"/>
</classpath>
<arg line="${src.dir}/com/gemstone/org/jgroups/conf/jg-magic-map.xml"/>
</java>
<antcall target="-remove-managed-entity-controller"/>
</target>
<target if="disable-managed-entity-controller" name="-remove-managed-entity-controller">
<!-- remove functional ManagedEntityController for bug #47909 -->
<delete>
<fileset dir="${classes.dir}" includes="**/EnabledManagedEntityController.class"/>
</delete>
</target>
<target name="build-templates" depends="props">
<macrodef name="template-module">
<attribute name="module" default="NOT SET"/>
<attribute name="target" default="jar"/>
<attribute name="destination" default="${osbuild.dir}/templates"/>
<sequential>