forked from blazegraph/database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
2743 lines (2446 loc) · 133 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
<!-- @todo change the release target to put release notes into the root of the archives. -->
<!-- $Id: build.xml 8289 2014-05-12 22:24:18Z mrpersonick $ -->
<!-- Deployment models.
Embedded. Bigdata can be run as an embedded database. You just need to bundle
the various jars. The jini and zookeeper dependencies are NOT required when
used as an embedded database. You can also use this approach to run bigdata
using the NanoSparqlServer with an embedded jetty servlet engine.
See 'bundleJar'.
Webapp. Bigdata can be deployed as a web application exposing a SPARQL end point
with a RESTful API.
See 'war'. Starting with the 1.5.2 release, this is deprecated and the bigdata-war maven
artifact should be used: cd bigdata-war; mvn package
Executable jar. Bigdata can be built as an executable jar file. This is a fully-
bundled single jar distribution that may be run as "java -jar <jarfile>". You may
use an alternate configuration file by setting the -Dbigdata.propertyFile= property.
See 'executable-jar'
Cluster deployment. There are two ways to deploy the cluster. One is
using 'ant-install' from either the top-level directory (either as
checked out from SVN or as unpacked from the distribution artifact
DIST.${version}.tgz). The second is to use the deployment artifact
REL.${version}.tgz.
(A) This provides deployment from the project source either as checked
out from SVN or form a DIST.${version}.tgz file.
See 'ant-install'
(B) This is the new deployment model, but it is not yet complete.
It is based on the "stage" target which provides unversioned jar
names in dist/bigdata/lib, lib-dl, and lib-ext. Basically, you
unpack the archive and install onto the node. A script can then
start the various services using pstart based on a desired node
configuration. See the btm branch and trac for details and code.
See 'ant deploy-artifact'
Source and binary releases. There are two targets which provide source and
binary releases.
See 'ant-install-artifact' (source code artifact: DIST.${version}.tgz).
See 'deploy-artifact' (binary artifact: REL.${version}.tgz).
-->
<project name="bigdata" default="bundleJar" basedir=".">
<property file="build.properties" />
<!-- build-time classpath. -->
<path id="build.classpath">
<fileset dir="${bigdata.dir}/bigdata/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${bigdata.dir}/bigdata-jini/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${bigdata.dir}/bigdata-rdf/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${bigdata.dir}/bigdata-sails/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${bigdata.dir}/bigdata-blueprints/lib">
<include name="**/*.jar" />
</fileset>
<!-- <fileset dir="${bigdata.dir}/bigdata-gom/lib">
<include name="**/*.jar" />
</fileset> -->
<!--
<fileset dir="${bigdata.dir}/ctc-striterator/lib">
<include name="**/*.jar" />
</fileset> -->
</path>
<!-- runtime classpath w/o install. -->
<path id="runtime.classpath">
<fileset file="${bigdata.dir}/bigdata-rdf/lib/openrdf-sesame-${sesame.version}-onejar.jar"/>
<pathelement location="${build.dir}/classes" />
<path refid="build.classpath" />
</path>
<!-- classpath as installed. -->
<!-- @todo .so and .dll -->
<path id="install.classpath">
<fileset dir="${install.lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="clean" description="cleans everything in [build.dir].">
<delete dir="${build.dir}" />
<delete dir="${bigdata.dir}/bigdata-test" quiet="true" />
<delete dir="${bigdata.dir}/dist" quiet="true" />
</target>
<target name="prepare">
<!-- setup ${version} for regular or snapshot. -->
<tstamp>
<format property="today" pattern="yyyyMMdd" locale="en,US" />
<format property="osgiDate" pattern="yyyyMMdd" locale="en,US" />
</tstamp>
<condition property="client-version" value="bigdata-client-${build.ver}-${today}" else="bigdata-client-${build.ver}">
<istrue value="${snapshot}" />
</condition>
<condition property="version" value="bigdata-${build.ver}-${today}" else="bigdata-${build.ver}">
<istrue value="${snapshot}" />
</condition>
<condition property="osgi.version" value="${build.ver.osgi}.${osgiDate}" else="${build.ver.osgi}.0">
<istrue value="${snapshot}" />
</condition>
<!--<echo message="today=${today}"/>-->
<echo message="version=${version}" />
<!-- create directories. -->
<mkdir dir="${build.dir}" />
<mkdir dir="${build.dir}/classes" />
<mkdir dir="${build.dir}/docs" />
<mkdir dir="${build.dir}/lib" />
</target>
<target name="buildinfo" depends="prepare"
description="Generate a BuildInfo.java file with metadata about this build.">
<property name="buildinfo.file"
value="${bigdata.dir}/bigdata/src/java/com/bigdata/BuildInfo.java"/>
<!--
<loadfile property="svn.revision" srcFile="./.svn/entries">
<filterchain>
<headfilter lines="1" skip="3"/>
<striplinebreaks/>
</filterchain>
</loadfile>
<loadfile property="svn.url" srcFile="./.svn/entries">
<filterchain>
<headfilter lines="1" skip="4"/>
<striplinebreaks/>
</filterchain>
</loadfile>
-->
<tstamp>
<format property="build.timestamp" pattern="yyyy/MM/dd HH:mm:ss z" locale="en,US" />
</tstamp>
<property environment="env" />
<echo file="${buildinfo.file}">
package com.bigdata;
public class BuildInfo {
public static final String buildVersion="${build.ver}";
public static final String buildVersionOSGI="${build.ver.osgi}";
public static final String buildTimestamp="${build.timestamp}";
public static final String buildUser="${user.name}";
public static final String osArch="${os.arch}";
public static final String osName="${os.name}";
public static final String osVersion="${os.version}";
}
</echo>
<loadfile property="buildinfo" srcFile="${buildinfo.file}"/>
<echo message="${buildinfo}"/>
</target>
<!-- Note: I had to explicitly specify the location of the jdepend jar
in Preferences => Ant => Runtime in order to get this to work under
eclipse. This is odd since eclipse bundles the jar with the ant
plugin.
http://www.ryanlowe.ca/blog/archives/001038_junit_ant_task_doesnt_work_in_eclipse.php
outputfile="${build.dir}/docs/jdepend-report.txt"
-->
<target name="jdepend" depends="jar">
<jdepend format="xml"
outputfile="${build.dir}/docs/jdepend-report.xml">
<exclude name="java.*"/>
<exclude name="javax.*"/>
<classespath>
<pathelement location="${build.dir}/${version}.jar" />
</classespath>
</jdepend>
<style basedir="${build.dir}/docs" destdir="${build.dir}/docs"
includes="jdepend-report.xml"
style="${ant.home}/etc/jdepend.xsl" />
</target>
<!-- Note: This will (re-)compile the SPARQL grammar. Compilation is -->
<!-- fast, but javacc must be installed. -->
<target name="javacc" depends="prepare"
description="Compile the SPARQL grammar.">
<jjtree
javacchome="${javacc.home}"
target="bigdata-sails/src/java/com/bigdata/rdf/sail/sparql/ast/sparql.jjt"
outputfile="sparql.jj"
outputdirectory="bigdata-sails/src/java/com/bigdata/rdf/sail/sparql/ast/"
/>
<javacc
javacchome="${javacc.home}"
target="bigdata-sails/src/java/com/bigdata/rdf/sail/sparql/ast/sparql.jj"
outputdirectory="bigdata-sails/src/java/com/bigdata/rdf/sail/sparql/ast/"
/>
</target>
<!-- Note: javac error results often if verbose is disabled. -->
<!-- I was able to perform a build with 1.6.0_07. -->
<!-- I set the target to 1.5 to support deployment on non-1.6 JVMs. -->
<target name="compile" description="Compile the code base.">
<exec command="./scripts/mavenInstall.sh">
</exec>
</target>
<!-- Builds the bigdata JAR and bundles it together with all of its dependencies in the ${build.dir}/lib directory. -->
<target name="bundleJar" depends="clean, bundle, jar" description="Builds the bigdata JAR and bundles it together with all of its dependencies in the ${build.dir}/lib directory.">
<copy file="${build.dir}/${version}.jar" todir="${build.dir}/lib"/>
<!--<property name="myclasspath" refid="runtime.classpath" />
<echo message="${myclasspath}"/>-->
</target>
<target name="sourceJar" depends="prepare" description="Generates the sources jar.">
<jar destfile="${build.dir}/${version}-sources.jar">
<fileset dir="${bigdata.dir}/bigdata/src/java" />
<fileset dir="${bigdata.dir}/bigdata/src/samples" />
<fileset dir="${bigdata.dir}/bigdata-ganglia/src/main/java" />
<fileset dir="${bigdata.dir}/bigdata-gas/src/main/java" />
<fileset dir="${bigdata.dir}/bigdata-client/src/main/java" />
<fileset dir="${bigdata.dir}/bigdata-jini/src/main/java" />
<fileset dir="${bigdata.dir}/bigdata-rdf/src/java" />
<fileset dir="${bigdata.dir}/bigdata-rdf/src/samples" />
<fileset dir="${bigdata.dir}/bigdata-sails/src/java" />
<fileset dir="${bigdata.dir}/bigdata-blueprints/src/main/java" />
<fileset dir="${bigdata.dir}/bigdata-sails/src/samples" />
<fileset dir="${bigdata.dir}/bigdata-gom/src/java" />
<fileset dir="${bigdata.dir}/bigdata-gom/src/samples" />
<fileset dir="${bigdata.dir}/ctc-striterators/src/main/java" />
<fileset dir="${bigdata.dir}/rdf-properties/src/main/java" />
<fileset dir="${bigdata.dir}/bigdata-util/src/main/java" />
</jar>
</target>
<!-- This generates the jar, but does not bundled the dependencies.
See 'bundleJar'. -->
<target name="jar" depends="compile" description="Generates the jar (see also bundleJar).">
<jar destfile="${build.dir}/${version}.jar">
<fileset dir="${build.dir}/classes" excludes="test/**" />
<!-- Copy the copyright top-level NOTICE file. -->
<fileset file="${bigdata.dir}/NOTICE"/>
<!-- Copy the copyright top-level LICENSE file. -->
<fileset file="${bigdata.dir}/LICENSE.txt"/>
<!-- Copy licenses for any project from which have imported something. -->
<fileset dir="${bigdata.dir}/bigdata">
<include name="LEGAL/apache-license-2_0.txt"/>
</fileset>
<fileset dir="${bigdata.dir}/bigdata-rdf">
<include name="LEGAL/sesame2.x-license.txt"/>
</fileset>
<manifest>
<!--<attribute name="Main-Class" value="com/bigdata/rdf/rio/TestRioIntegration"/>-->
</manifest>
</jar>
</target>
<!-- Deploy the JAR to the maven repository. -->
<target name="maven-deploy" depends="jar"
description="Deploy the jar to the maven repository.">
<exec command="${MAVEN_HOME}/bin/mvn">
<arg value="clean"/>
<arg value="deploy"/>
</exec>
</target>
<!-- This generates an osgi bundle jar, but does not bundle the dependencies.
See 'bundleJar'. -->
<target name="osgi" depends="compile, bundle" description="Generates the osgi bundle jar (see also bundleJar).">
<taskdef resource="aQute/bnd/ant/taskdef.properties" classpath="bigdata/lib/bnd-0.0.384.jar" />
<mkdir dir="${build.dir}/bundles" />
<jar destfile="${build.dir}/bundles/com.bigdata.source_${osgi.version}.jar">
<manifest>
<attribute name="Eclipse-SourceBundle" value='com.bigdata;version="${osgi.version}";roots="."' />
<attribute name="Bundle-Vendor" value="Systap" />
<attribute name="Bundle-Version" value="${build.ver.osgi}" />
<attribute name="Bundle-ManifestVersion" value="2" />
<attribute name="Bundle-SymbolicName" value="com.bigdata.source" />
<attribute name="Bundle-DocURL" value="http://www.bigdata.com" />
<attribute name="Bundle-Description" value="Bigdata Source" />
</manifest>
<fileset dir="bigdata/src/java" />
<fileset dir="bigdata-client/src/main/java" />
<fileset dir="bigdata-jini/src/main/java" />
<fileset dir="bigdata-rdf/src/java" />
<fileset dir="rdf-properties/src/main/java" />
<fileset dir="bigdata-util/src/main/java" />
<fileset dir="bigdata-sails/src/java" />
<fileset dir="bigdata-blueprints/src/main/java" />
<fileset dir="bigdata-gom/src/java" />
</jar>
<bnd output="${build.dir}/bundles/com.bigata-${osgi.version}.jar" classpath="${build.dir}/classes" eclipse="false" failok="false" exceptions="true" files="${basedir}/osgi/bigdata.bnd" />
<bndwrap jars="${build.dir}/lib/colt-${colt.version}.jar" output="${build.dir}/bundles/colt-${colt.version}.jar" definitions="${basedir}/osgi/" />
<bndwrap jars="${build.dir}/lib/fastutil-${fastutil.version}.jar" output="${build.dir}/bundles/fastutil-${fastutil.version}.jar" definitions="${basedir}/osgi/" />
<bndwrap jars="${build.dir}/lib/dsi-utils-${dsiutils.version}.jar" output="${build.dir}/bundles/dsi-utils-${dsiutils.version}.jar" definitions="${basedir}/osgi/" />
<bndwrap jars="${build.dir}/lib/lgpl-utils-${lgplutils.version}.jar" output="${build.dir}/bundles/lgpl-utils-${lgplutils.version}.jar" definitions="${basedir}/osgi/" />
<bndwrap jars="${build.dir}/lib/high-scale-lib-v${highscalelib.version}.jar" output="${build.dir}/bundles/high-scale-lib-v${highscalelib.version}.jar" definitions="${basedir}/osgi/" />
<bndwrap jars="${build.dir}/lib/openrdf-sesame-${sesame.version}-onejar.jar" output="${build.dir}/bundles/openrdf-sesame-${sesame.version}.jar" definitions="${basedir}/osgi/" />
<bndwrap jars="${build.dir}/lib/apache/zookeeper-${zookeeper.version}.jar" output="${build.dir}/bundles/zookeeper-${zookeeper.version}.jar" definitions="${basedir}/osgi/" />
<!-- bndwrap jars="${build.dir}/lib/nxparser-${nxparser.version}.jar" output="${build.dir}/bundles/nxparser-2010.6.22.jar" definitions="${basedir}/osgi/" /> -->
</target>
<!-- Note: the javadoc requires a LOT of RAM, but runs quickly on a
server class machine.
TODO man page for [bigdata] script to @{build.dir}/docs
TODO: New overview page. Old one was very dated and has been removed.
overview="${bigdata.dir}/overview.html"
-->
<target name="javadoc" depends="prepare" if="javadoc">
<mkdir dir="${build.dir}/docs/api" />
<javadoc destdir="${build.dir}/docs/api" defaultexcludes="yes"
author="true" version="true" use="true" verbose="no"
windowtitle="bigdata® v${build.ver}"
classpathref="build.classpath"
encoding="utf-8"
private="false"
>
<arg value="-J-Xmx2000m" />
<arg value="-quiet" />
<packageset dir="${bigdata.dir}/bigdata/src/java" />
<packageset dir="${bigdata.dir}/bigdata/src/samples" />
<packageset dir="${bigdata.dir}/bigdata-client/src/main/java" />
<packageset dir="${bigdata.dir}/bigdata-jini/src/main/java" />
<packageset dir="${bigdata.dir}/bigdata-rdf/src/java" />
<packageset dir="${bigdata.dir}/rdf-properties/src/main/java" />
<packageset dir="${bigdata.dir}/bigdata-util/src/main/java" />
<packageset dir="${bigdata.dir}/bigdata-rdf/src/samples" />
<packageset dir="${bigdata.dir}/bigdata-sails/src/java" />
<packageset dir="${bigdata.dir}/bigdata-blueprints/src/main/java" />
<packageset dir="${bigdata.dir}/bigdata-sails/src/samples" />
<packageset dir="${bigdata.dir}/bigdata-gom/src/java" />
<packageset dir="${bigdata.dir}/bigdata-gom/src/samples" />
<packageset dir="${bigdata.dir}/bigdata-gas/src/main/java" />
<packageset dir="${bigdata.dir}/ctc-striterators/src/main/java" />
<doctitle>
<![CDATA[<h1>bigdata® v${build.ver}</h1>]]></doctitle>
<bottom>
<![CDATA[<i>Copyright © 2006-2016 SYSTAP, LLC DBA Blazegraph. All Rights Reserved.</i>
<script>
jQuery(document).ready(function(){
jQuery('ul.sf-menu').superfish({
pathClass: 'current',
cssArrows: false
});
});
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50971023-6', 'blazegraph.com');
ga('send', 'pageview');
</script>
]]></bottom>
<tag name="todo" scope="all" description="TODO:" />
<tag name="issue" scope="all" description="ISSUE:" />
<!--tag name="FIXME" scope="all" description="FIXME:"/-->
<link href="http://download.oracle.com/javase/7/docs/api/" />
<link href="http://openrdf.callimachus.net/sesame/2.7/apidocs/" />
<link href="http://lucene.apache.org/java/3_0_0/api/"/>
<link href="http://lucene.apache.org/core/old_versioned_docs/versions/3_0_3/api/all/"/>
<link href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/"/>
<link href="http://hc.apache.org/httpcomponents-core-ga/httpcore-nio/apidocs/"/>
<link href="http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/"/>
<link href="http://hc.apache.org/httpcomponents-client-ga/httpmime/apidocs/"/>
<link href="http://hc.apache.org/httpcomponents-client-ga/httpclient-cache/apidocs/"/>
<link href="http://icu-project.org/apiref/icu4j/"/>
<link href="http://download.eclipse.org/jetty/stable-9/apidocs/"/>
</javadoc>
</target>
<target name="bundle" description="Bundles all dependencies for easier deployments and releases (does not bundle the bigdata jar).">
<copy toDir="${build.dir}/lib" flatten="true">
<fileset dir="${bigdata.dir}/bigdata/lib">
<include name="**/*.jar" />
<include name="**/*.so" />
<include name="**/*.dll" />
<!-- The BytesUtil JNI class is not recommended at this time (no performance gain). -->
<exclude name="**/*BytesUtil*" />
</fileset>
<fileset dir="${bigdata.dir}/bigdata-rdf/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${bigdata.dir}/bigdata-sails/lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${bigdata.dir}/bigdata-blueprints/lib">
<include name="**/*.jar" />
</fileset>
<!-- <fileset dir="${bigdata.dir}/bigdata-gom/lib">
<include name="**/*.jar" />
</fileset> -->
</copy>
<!-- Do NOT flatten the jini jars. We need the to preserve the -->
<!-- lib, lib-dl, and lib-ext distinctions. -->
<copy toDir="${build.dir}/lib" flatten="false">
<fileset dir="${bigdata.dir}/bigdata-jini/lib">
<include name="**/*.jar" />
</fileset>
</copy>
</target>
<!--
This target produces a new jar which includes everything from the bigdata
jar, the dsi-util jar, the lgpl-utils jar, and exactly those class files
from colt and fastutil which are required by the proceeding jars. The
main advantage of the resulting jar is that the vast majority of fastutil
is not necessary, and it is a 13M jar.
<target name="autojar"
description="Produce an expanded version of the bigdata jar which
includes the data from the dsi-util and lgpl-utils jars and only
those classes from fastutil and colt which are required to support
bigdata and dsiutil at runtime.">
<java jar="src/build/autojar/autojar.jar" fork="true" failonerror="true">
<arg line="-o ${build.dir}/bigdataPlus.jar
-c ${bigdata.dir}/bigdata/lib/unimi/fastutil*.jar
-c ${bigdata.dir}/bigdata/lib/unimi/colt*.jar
${build.dir}/lib/bigdata*.jar
${bigdata.dir}/bigdata/lib/dsi-util*.jar
${bigdata.dir}/bigdata/lib/lgpl-utils*.jar
" />
</java>
</target> -->
<!-- java autojar.jar -vo fastutil-stripped.jar -c fastutil.jar -Y bigdata.jar -->
<target name="autojar-strip-fastutil" depends="prepare"
description="Strip unused classes from fastutil.">
<java jar="src/build/autojar/autojar.jar" fork="true" failonerror="true">
<arg line="-o ${build.dir}/fastutil-stripped.jar
-c ${bigdata.dir}/bigdata/lib/unimi/fastutil*.jar
--
-Y ${build.dir}/lib/${version}.jar
-Y ${bigdata.dir}/bigdata/lib/dsi-util*.jar
-Y ${bigdata.dir}/bigdata/lib/lgpl-utils*.jar
" />
</java>
</target>
<!--
@see http://trac.bigdata.com/ticket/628 (Create a bigdata-client jar for the NSS REST API)
@see http://trac.bigdata.com/ticket/1153 (ant "bigdata-client" does not bundle the openrdf remote classes)
@see http://trac.bigdata.com/ticket/1235 (bigdata-client does not invoke ServiceProviderHook.forceLoad())
-->
<target name="bigdata-client" depends="clean, prepare, jar"
description="Prepare the bigdata web access client library.">
<java jar="src/build/autojar/autojar.jar" fork="true" failonerror="true">
<arg line="-o ${build.dir}/${client-version}.jar
-c ${build.dir}/${version}.jar
-v
--
com.bigdata.rdf.ServiceProviderHook.class
com.bigdata.rdf.sail.webapp.client.*.class
com.bigdata.rdf.sail.remote.*.class
com.bigdata.rdf.properties.*.class
com.bigdata.rdf.properties.text.*.class
com.bigdata.rdf.properties.xml.*.class
" />
</java>
</target>
<!--depends="bundleJar"-->
<target name="war" description="Generates a WAR artifact.">
<exec command="mvn -f bigdata-war/pom.xml package">
</exec>
</target>
<target name="banner" depends="jar" description="Displays the banner (verifies runtime classpath).">
<java classname="com.bigdata.Banner" failonerror="true" fork="false" logerror="true">
<classpath refid="runtime.classpath" />
</java>
</target>
<!-- -->
<!-- CLUSTER INSTALL TARGETS -->
<!-- -->
<!--
This is the cluster-based install. You need to edit build.properties, decide
which configuration is going to be the basis for your cluster, and then edit
that configuration file. When you are ready, you can use this target to install
bigdata onto a cluster.
In order to get things moving you need to setup a cron job that will run the
'bigdata' script which is installed by this target. Documentation on how to
do this is written onto the console after a successfull install. Those notes
are in the "POST-INSTALL" file in the source distribution and are also copied
into the $binDir when bigdata is installed.
Once you have cron setup, and once you have adjusted the owner and group
properties if you are running bigdata as root, you must edit the $stateFile
and change the run state from 'status' to 'start'.
If you want to shutdown the bigdata services, change the run state to 'stop'.
This will halt all services, but they can be restarted by changing the run
state back to 'start'.
To remove a bigdata installation, first change the run state to 'destroy' and
wait for all services to halt. THIS WILL DESTROY ALL PERSISTENT STATE!!!!
When that is done, you can remove the shared $NAS directory. The cron job
will still be trying to run the 'bigdata' script, so either replace it with
an "NOP" bash script or edit your crontab.
-->
<target name="install" depends="jar, banner, javadoc, bundle" description="Install bigdata on a cluster.">
<!-- create NAS/LAS directories. -->
<mkdir dir="${NAS}" />
<mkdir dir="${LAS}" />
<!-- NAS/LAS directories must be read/write for the group. -->
<chmod perm="ug+rw,o-rw">
<fileset dir="${NAS}" />
</chmod>
<chmod perm="ug+rw,o-rw">
<fileset dir="${LAS}" />
</chmod>
<!-- create subdirectories of NAS - should inherit permissions. -->
<mkdir dir="${install.config.dir}" />
<mkdir dir="${install.doc.dir}" />
<mkdir dir="${install.lib.dir}" />
<mkdir dir="${install.bin.dir}" />
<mkdir dir="${install.log.dir}" />
<mkdir dir="${install.dist.dir}" />
<!-- install configuration files. -->
<copy toDir="${install.config.dir}">
<fileset dir="${bigdata.dir}/src/resources/config">
</fileset>
</copy>
<!-- install documentation. -->
<copy toDir="${install.doc.dir}">
<!-- javadoc. -->
<fileset dir="${build.dir}/docs" />
<!-- common files from the root of the archive. -->
<!-- @todo cleanup LEGAL into one directory off the root in the src tree? -->
<fileset dir="${bigdata.dir}">
<include name="LICENSE.txt" />
<include name="bigdata/LEGAL/*" />
<include name="bigdata-jini/LEGAL/*" />
<include name="bigdata-rdf/LEGAL/*" />
<include name="bigdata-sails/LEGAL/*" />
<include name="bigdata-blueprints/LEGAL/*" />
<include name="bigdata-gom/LEGAL/*" />
</fileset>
</copy>
<!-- install JARs. -->
<copy toDir="${install.lib.dir}">
<fileset dir="${build.dir}/lib" />
<fileset file="${build.dir}/${version}.jar" />
</copy>
<!-- install scripts. -->
<copy toDir="${install.bin.dir}">
<fileset dir="src/resources/scripts">
</fileset>
</copy>
<!-- parameter substitution. -->
<property name="myclasspath" refid="install.classpath" />
<replace dir="${install.bin.dir}" summary="true">
<replacefilter token="@FED@" value="${FED}" />
<replacefilter token="@NAS@" value="${NAS}" />
<replacefilter token="@LAS@" value="${LAS}" />
<replacefilter token="@JAVA_HOME@" value="${JAVA_HOME}" />
<replacefilter token="@JINI_CLASS_SERVER_PORT@" value="${JINI_CLASS_SERVER_PORT}" />
<replacefilter token="@LOAD_BALANCER_PORT@" value="${LOAD_BALANCER_PORT}" />
<replacefilter token="@REPORT_ALL@" value="${REPORT_ALL}" />
<replacefilter token="@SYSSTAT_HOME@" value="${SYSSTAT_HOME}" />
<replacefilter token="@USE_NIO@" value="${USE_NIO}" />
<replacefilter token="@BIN_DIR@" value="${install.bin.dir}" />
<replacefilter token="@LIB_DIR@" value="${install.lib.dir}" />
<replacefilter token="@LOG_DIR@" value="${install.log.dir}" />
<replacefilter token="@CONFIG_DIR@" value="${install.config.dir}" />
<replacefilter token="@INSTALL_USER@" value="${install.user}" />
<replacefilter token="@INSTALL_GROUP@" value="${install.group}" />
<replacefilter token="@LOCK_CMD@" value="${LOCK_CMD}" />
<replacefilter token="@LOCK_FILE@" value="${LOCK_FILE}" />
<replacefilter token="@BIGDATA_CONFIG@" value="${bigdata.config}" />
<replacefilter token="@JINI_CONFIG@" value="${jini.config}" />
<replacefilter token="@POLICY_FILE@" value="${policyFile}" />
<replacefilter token="@LOG4J_SOCKET_LOGGER_HOST@" value="${LOG4J_SOCKET_LOGGER_HOST}" />
<replacefilter token="@LOG4J_SOCKET_LOGGER_PORT@" value="${LOG4J_SOCKET_LOGGER_PORT}" />
<replacefilter token="@LOG4J_SOCKET_LOGGER_CONFIG@" value="${log4jServer.config}" />
<replacefilter token="@LOG4J_DATE_PATTERN@" value="${LOG4J_DATE_PATTERN}" />
<replacefilter token="@LOG4J_CONFIG@" value="${log4j.config}" />
<replacefilter token="@LOGGING_CONFIG@" value="${logging.config}" />
<replacefilter token="@ERROR_LOG@" value="${errorLog}" />
<replacefilter token="@DETAIL_LOG@" value="${detailLog}" />
<replacefilter token="@EVENT_LOG@" value="${eventLog}" />
<replacefilter token="@RULE_LOG@" value="${ruleLog}" />
<replacefilter token="@STATE_LOG@" value="${stateLog}" />
<replacefilter token="@STATE_FILE@" value="${stateFile}" />
<replacefilter token="@FORCE_KILL_ALL@" value="${forceKillAll}" />
<replacefilter token="@NTP_MASTER@" value="${NTP_MASTER}" />
<replacefilter token="@NTP_NETWORK@" value="${NTP_NETWORK}" />
<replacefilter token="@NTP_NETMASK@" value="${NTP_NETMASK}" />
<replacefilter token="@CLASSPATH@" value="${myclasspath}" />
</replace>
<replace dir="${install.config.dir}" summary="true">
<replacefilter token="@FED@" value="${FED}" />
<replacefilter token="@NAS@" value="${NAS}" />
<replacefilter token="@LAS@" value="${LAS}" />
<replacefilter token="@LOG4J_SOCKET_LOGGER_HOST@" value="${LOG4J_SOCKET_LOGGER_HOST}" />
<replacefilter token="@JAVA_HOME@" value="${JAVA_HOME}" />
<replacefilter token="@JINI_CLASS_SERVER_PORT@" value="${JINI_CLASS_SERVER_PORT}" />
<replacefilter token="@LOAD_BALANCER_PORT@" value="${LOAD_BALANCER_PORT}" />
<replacefilter token="@REPORT_ALL@" value="${REPORT_ALL}" />
<replacefilter token="@SYSSTAT_HOME@" value="${SYSSTAT_HOME}" />
<replacefilter token="@USE_NIO@" value="${USE_NIO}" />
<replacefilter token="@BIN_DIR@" value="${install.bin.dir}" />
<replacefilter token="@LIB_DIR@" value="${install.lib.dir}" />
<replacefilter token="@LOG_DIR@" value="${install.log.dir}" />
<replacefilter token="@CONFIG_DIR@" value="${install.config.dir}" />
<replacefilter token="@INSTALL_USER@" value="${install.user}" />
<replacefilter token="@INSTALL_GROUP@" value="${install.group}" />
<replacefilter token="@LOCK_CMD@" value="${LOCK_CMD}" />
<replacefilter token="@LOCK_FILE@" value="${LOCK_FILE}" />
<replacefilter token="@BIGDATA_CONFIG@" value="${bigdata.config}" />
<replacefilter token="@JINI_CONFIG@" value="${jini.config}" />
<replacefilter token="@POLICY_FILE@" value="${policyFile}" />
<replacefilter token="@LOG4J_SOCKET_LOGGER_HOST@" value="${LOG4J_SOCKET_LOGGER_HOST}" />
<replacefilter token="@LOG4J_SOCKET_LOGGER_PORT@" value="${LOG4J_SOCKET_LOGGER_PORT}" />
<replacefilter token="@LOG4J_SOCKET_LOGGER_CONFIG@" value="${log4jServer.config}" />
<replacefilter token="@LOG4J_DATE_PATTERN@" value="${LOG4J_DATE_PATTERN}" />
<replacefilter token="@LOG4J_CONFIG@" value="${log4j.config}" />
<replacefilter token="@LOGGING_CONFIG@" value="${logging.config}" />
<replacefilter token="@ERROR_LOG@" value="${errorLog}" />
<replacefilter token="@DETAIL_LOG@" value="${detailLog}" />
<replacefilter token="@EVENT_LOG@" value="${eventLog}" />
<replacefilter token="@RULE_LOG@" value="${ruleLog}" />
<replacefilter token="@STATE_LOG@" value="${stateLog}" />
<replacefilter token="@STATE_FILE@" value="${stateFile}" />
<replacefilter token="@FORCE_KILL_ALL@" value="${forceKillAll}" />
<replacefilter token="@NTP_MASTER@" value="${NTP_MASTER}" />
<replacefilter token="@NTP_NETWORK@" value="${NTP_NETWORK}" />
<replacefilter token="@NTP_NETMASK@" value="${NTP_NETMASK}" />
<replacefilter token="@CLASSPATH@" value="${myclasspath}" />
<!-- updates the configuration file to locate the lubm ontology. -->
<replacefilter token="@install.lubm.config.dir@" value="${install.lubm.config.dir}" />
</replace>
<!-- fix newlines (otherwise substitutions cause things to break). -->
<fixcrlf srcDir="${install.config.dir}" />
<!-- fix newlines (otherwise substitutions cause things to break). -->
<fixcrlf srcDir="${install.bin.dir}" />
<!-- set execute bit for scripts in this directory (must be the last step). -->
<chmod perm="u+x,g+rx,o-rwx">
<fileset dir="${install.bin.dir}">
<exclude name="README" />
<exclude name="POST-INSTALL" />
</fileset>
</chmod>
<!-- Setup the status file which will be read by the bigdata script and
the log on which that script will write its output. This is used
if cron, or a similar process, will execute the script on a periodic
basis. The initial state is always 'status'. The initial stateLog
is always empty. The state file must be readable by the group, but
could be restricted to write by a specific user. The stateLog must be
read/write for the group. -->
<echo file="${stateFile}">status</echo>
<echo file="${stateLog}">
</echo>
<chmod perm="g+rw,o-rw" file="${stateFile}" />
<chmod perm="g+rw,o-rw" file="${stateLog}" />
<!-- Make sure that the entire shared directory structure is read/write for the group. -->
<chmod perm="g+rwx" type="both" dir="${NAS}" verbose="true" />
<!-- Make sure that it is all accessible to the install group (ant 1.6+ plus extension module required).
<chown file="${NAS}" type="both" owner="${install.user}.${install.group}" verbose="true"/>
-->
<!-- Works for earlier versions of ant LT 1.6 which do not bundle "chown". -->
<apply executable="chown" description="set owner on NAS files" osfamily="unix">
<arg value="-R" />
<arg value="${install.user}.${install.group}" />
<dirset dir="${NAS}" />
</apply>
<!-- @todo check the installed configuration file (after parameter substitution). -->
<!-- @todo also check the installed jini configuration files. -->
<java classname="com.bigdata.jini.util.CheckConfiguration" failonerror="true" fork="true" logerror="true">
<classpath refid="install.classpath" />
<arg value="${bigdata.config}" />
</java>
<loadfile property="postInstallMessage" srcFile="${install.bin.dir}/POST-INSTALL" />
<echo>
${postInstallMessage}</echo>
</target>
<!-- This may be used to verify that statistics are being collected for the
target platform and diagnose errors related to a missing or incomplete
sysstat install or other monitoring dependencies. -->
<target name="test-monitoring" depends="compile" description="Run the statistics collectors for the deployment platform.">
<java classname="com.bigdata.counters.AbstractStatisticsCollector" failonerror="true" fork="true" logerror="true">
<classpath refid="install.classpath" />
<jvmarg value="-Dcom.bigdata.counters.linux.sysstat.path=${SYSSTAT_HOME}" />
<jvmarg value="-Dcom.bigdata.jmx.log4j.disable=true" />
<jvmarg value="-Dlog4j.configuration=file:bigdata/src/resources/logging/log4j.properties" />
<arg value="1" />
<!-- interval between reports. -->
<arg value="10" />
<!-- #of seconds to run. -->
</java>
</target>
<!-- Note: we must fork the JVM to the jvmarg overrides applied. -->
<!-- Note: We disable registration of log4j MBeans since that requires policy file. -->
<!-- @todo add a target to launch the post-mortem counter set/events viewer. -->
<target name="analysis" depends="bundleJar" description="Extracts performance counters from logged XML files.">
<java classname="com.bigdata.counters.query.CounterSetQuery" failonerror="true" fork="true" logerror="true">
<classpath refid="runtime.classpath" />
<jvmarg value="-Xmx1500m" />
<jvmarg value="-Dcom.bigdata.jmx.log4j.disable=true" />
<jvmarg value="-Dlog4j.configuration=file:bigdata/src/resources/logging/log4j.properties" />
<arg value="-outputDir" />
<arg value="${analysis.out.dir}" />
<arg value="-mimeType" />
<arg value="text/plain" />
<arg value="-queries" />
<arg file="${analysis.queries}" />
<arg file="${analysis.counters.dir}" />
</java>
</target>
<!-- -->
<!-- MISC. UTILITY TARGETS -->
<!-- -->
<target name="scale-out-sample" description="Run the scale-out sample code.">
<javac destdir="${build.dir}/classes"
classpathref="build.classpath"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
verbose="${javac.verbose}"
encoding="${javac.encoding}"
source="${javac.source}"
target="${javac.target}"
includeantruntime="false"
>
<src path="${bigdata.dir}/bigdata-sails/src/samples" />
</javac>
<!-- copy resources. -->
<copy toDir="${build.dir}/classes">
<fileset dir="${bigdata.dir}/bigdata-sails/src/samples">
<exclude name="**/*.java" />
<exclude name="**/package.html" />
</fileset>
</copy>
<java classname="com.bigdata.samples.ScaleOut" failonerror="true" fork="true" logerror="true">
<classpath refid="runtime.classpath" />
<jvmarg value="-Xmx1500m" />
<jvmarg value="-Dcom.bigdata.jmx.log4j.disable=true" />
<jvmarg value="-Dlog4j.configuration=file:bigdata-sails/src/samples/com/bigdata/samples/log4j.properties" />
<arg value="${bigdata.config}" />
</java>
</target>
<!-- -->
<!-- STAGING -->
<!-- -->
<target name="stage"
description="stages resources (jar, config, policy, logging files) needed to package or execute the bigdata distribution."
depends="jar, javadoc">
<!-- Create staging directories -->
<property name="dist.dir" location="${bigdata.dir}/dist/bigdata" />
<property name="dist.bin" location="${dist.dir}/bin" />
<property name="dist.bin.config" location="${dist.bin}/config" />
<property name="dist.lib" location="${dist.dir}/lib" />
<property name="dist.lib.dl" location="${dist.dir}/lib-dl" />
<property name="dist.lib.ext" location="${dist.dir}/lib-ext" />
<property name="dist.var" location="${dist.dir}/var" />
<property name="dist.var.config" location="${dist.var}/config" />
<property name="dist.var.config.policy" location="${dist.var.config}/policy" />
<property name="dist.var.config.logging" location="${dist.var.config}/logging" />
<property name="dist.var.config.jini" location="${dist.var.config}/jini" />
<property name="dist.var.jetty" location="${dist.var}/jetty" />
<property name="dist.doc" location="${dist.dir}/doc" />
<property name="dist.doc.api" location="${dist.dir}/doc/api" />
<property name="dist.doc.legal" location="${dist.dir}/doc/LEGAL" />
<!-- deployment directories having stuff to be staged. -->
<property name="deploy" location="src/resources/deployment"/>
<property name="deploy.nss" location="${deploy}/nss"/>
<delete dir="${dist.dir}" quiet="true" />
<mkdir dir="${dist.dir}" />
<mkdir dir="${dist.bin}" />
<mkdir dir="${dist.lib}" />
<mkdir dir="${dist.lib.dl}" />
<mkdir dir="${dist.lib.ext}" />
<mkdir dir="${dist.var}" />
<mkdir dir="${dist.var.config}" />
<mkdir dir="${dist.var.config.policy}" />
<mkdir dir="${dist.var.config.logging}" />
<mkdir dir="${dist.var.config.jini}" />
<mkdir dir="${dist.doc}" />
<mkdir dir="${dist.doc.api}" />
<mkdir dir="${dist.doc.legal}" />
<mkdir dir="${dist.dir}/etc" />
<mkdir dir="${dist.dir}/etc/init.d" />
<mkdir dir="${dist.dir}/etc/bigdata" />
<!-- Copy the jar files created by the jar target to -->
<!-- an application-specific but non-version-specific -->
<!-- jar file to either the lib or lib-dl staging -->
<!-- directory. When a new version of a given application's -->
<!-- jar file becomes available, the version-specific jar -->
<!-- file name should be changed here. -->
<property name="bigdata.lib" location="${bigdata.dir}/bigdata/lib" />
<property name="bigdata-jini.dir" location="${bigdata.dir}/bigdata-jini" />
<property name="bigdata-jini.lib" location="${bigdata.dir}/bigdata-jini/lib/jini/lib" />
<property name="bigdata-rdf.lib" location="${bigdata.dir}/bigdata-rdf/lib" />
<property name="bigdata-sails.lib" location="${bigdata.dir}/bigdata-sails/lib" />
<property name="bigdata-blueprints.lib" location="${bigdata.dir}/bigdata-blueprints/lib" />
<!-- <property name="bigdata-gom.lib" location="${bigdata.dir}/bigdata-gom/lib" /> -->
<property name="bigdata-jetty.lib" location="${bigdata.dir}/bigdata/lib/jetty" />
<property name="bigdata-http.lib" location="${bigdata.dir}/bigdata-sails/lib/httpcomponents" />
<property name="bigdata-zookeeper.lib" location="${bigdata.dir}/bigdata-jini/lib/apache" />
<!-- Utility libraries -->
<copy file="${bigdata.lib}/unimi/colt-${colt.version}.jar"
tofile="${dist.lib}/colt.jar" />
<copy file="${bigdata.lib}/high-scale-lib-v${highscalelib.version}.jar"
tofile="${dist.lib}/highscalelib.jar" />
<copy file="${bigdata.lib}/dsi-utils-${dsiutils.version}.jar"
tofile="${dist.lib}/dsiutils.jar" />
<copy file="${bigdata.lib}/lgpl-utils-${lgplutils.version}.jar"
tofile="${dist.lib}/lgplutils.jar" />
<copy file="${bigdata.lib}/unimi/fastutil-${fastutil.version}.jar"
tofile="${dist.lib}/fastutil.jar" />
<copy file="${bigdata.lib}/bigdata-ganglia-${ganglia.version}.jar"
tofile="${dist.lib}/bigdata-ganglia.jar" />
<!--copy file="${bigdata.lib}/bigdata-gas-${gas.version}.jar"
tofile="${dist.lib}/bigdata-gas.jar" -->
<copy file="${bigdata.lib}/icu/icu4j-${icu.version}.jar"
tofile="${dist.lib}/icu4j.jar" />
<copy file="${bigdata.lib}/icu/icu4j-charset-${icu.version}.jar"
tofile="${dist.lib}/icu4j-charset.jar" />
<copy file="${bigdata.lib}/apache/log4j-${log4j.version}.jar"
tofile="${dist.lib}/log4j.jar" />
<copy file="${bigdata.lib}/lucene/lucene-core-${lucene.version}.jar"
tofile="${dist.lib}/lucene-core.jar" />
<!-- RDF library -->
<copy file="${bigdata-rdf.lib}/openrdf-sesame-${sesame.version}-onejar.jar"
tofile="${dist.lib}/openrdf-sesame.jar" />
<copy file="${bigdata-rdf.lib}/slf4j-api-${slf4j.version}.jar"
tofile="${dist.lib}/slf4j.jar" />
<copy file="${bigdata-rdf.lib}/slf4j-log4j12-${slf4j.version}.jar"
tofile="${dist.lib}/slf4j-log4j.jar" />
<!-- GOM library -->
<!-- Note: Nothing yet for GOM -->
<!-- Blueprints library -->
<copy file="${bigdata-blueprints.lib}/blueprints-core-${blueprints.version}.jar"
tofile="${dist.lib}/blueprints-core.jar" />
<!-- JSON -->
<copy file="${bigdata-sails.lib}/jackson-core-${jackson.version}.jar"
tofile="${dist.lib}/jackson-core.jar" />
<copy file="${bigdata-sails.lib}/jackson-annotations-${jackson.version}.jar"
tofile="${dist.lib}/jackson-annotations.jar" />
<copy file="${bigdata-sails.lib}/jackson-databind-${jackson.version}.jar"
tofile="${dist.lib}/jackson-databind.jar" />
<!-- jetty library -->
<copy file="${bigdata-jetty.lib}/jetty-continuation-${jetty.version}.jar"
tofile="${dist.lib}/jetty-continuation.jar" />
<copy file="${bigdata-jetty.lib}/jetty-http-${jetty.version}.jar"
tofile="${dist.lib}/jetty-http.jar" />
<copy file="${bigdata-jetty.lib}/jetty-io-${jetty.version}.jar"
tofile="${dist.lib}/jetty-io.jar" />
<copy file="${bigdata-jetty.lib}/jetty-jmx-${jetty.version}.jar"
tofile="${dist.lib}/jetty-jmx.jar" />
<copy file="${bigdata-jetty.lib}/jetty-jndi-${jetty.version}.jar"
tofile="${dist.lib}/jetty-jndi.jar" />
<copy file="${bigdata-jetty.lib}/jetty-server-${jetty.version}.jar"
tofile="${dist.lib}/jetty-server.jar" />
<copy file="${bigdata-jetty.lib}/jetty-util-${jetty.version}.jar"
tofile="${dist.lib}/jetty-util.jar" />
<copy file="${bigdata-jetty.lib}/jetty-webapp-${jetty.version}.jar"
tofile="${dist.lib}/jetty-webapp.jar" />
<copy file="${bigdata-jetty.lib}/jetty-servlet-${jetty.version}.jar"
tofile="${dist.lib}/jetty-servlet.jar" />
<copy file="${bigdata-jetty.lib}/jetty-security-${jetty.version}.jar"
tofile="${dist.lib}/jetty-security.jar" />
<copy file="${bigdata-jetty.lib}/jetty-xml-${jetty.version}.jar"
tofile="${dist.lib}/jetty-xml.jar" />
<copy file="${bigdata-jetty.lib}/jetty-rewrite-${jetty.version}.jar"
tofile="${dist.lib}/jetty-rewrite.jar" />
<copy file="${bigdata-jetty.lib}/jetty-client-${jetty.version}.jar"
tofile="${dist.lib}/jetty-client.jar" />
<copy file="${bigdata-jetty.lib}/jetty-proxy-${jetty.version}.jar"
tofile="${dist.lib}/jetty-proxy.jar" />
<copy file="${bigdata-jetty.lib}/servlet-api-${servlet.version}.jar"
tofile="${dist.lib}/servlet-api.jar" />
<!-- NxParser (RDF NQuads support)
<copy file="${bigdata-rdf.lib}/nxparser-${nxparser.version}.jar"
tofile="${dist.lib}/nxparser.jar" /> -->
<!-- http components (SPARQL connections). -->
<copy file="${bigdata-http.lib}/commons-fileupload-${apache.commons_fileupload.version}.jar"
tofile="${dist.lib}/commons-fileupload.jar" />
<copy file="${bigdata-http.lib}/commons-io-${apache.commons_io.version}.jar"
tofile="${dist.lib}/commons-io.jar" />
<copy file="${bigdata-http.lib}/commons-logging-${apache.commons_logging.version}.jar"
tofile="${dist.lib}/commons-logging.jar" />
<copy file="${bigdata-http.lib}/httpclient-${apache.httpclient.version}.jar"
tofile="${dist.lib}/httpclient.jar" />
<copy file="${bigdata-http.lib}/httpcore-${apache.httpcore.version}.jar"
tofile="${dist.lib}/httpcore.jar" />
<copy file="${bigdata-http.lib}/httpmime-${apache.httpmime.version}.jar"
tofile="${dist.lib}/httpmime.jar" />
<!-- REMOVE
<copy file="${bigdata-http.lib}/commons-codec-${apache.commons_codec.version}.jar"
tofile="${dist.lib}/commons-codec.jar" />
<copy file="${bigdata-http.lib}/httpclient-cache-${apache.httpclient_cache.version}.jar"
tofile="${dist.lib}/httpclient-cache.jar" />
-->
<!-- Zookeeper library -->
<copy file="${bigdata-zookeeper.lib}/zookeeper-${zookeeper.version}.jar"
tofile="${dist.lib}/zookeeper.jar" />
<!-- Jini library -->
<copy file="${bigdata-jini.lib}/browser.jar"
todir="${dist.lib}" />
<copy file="${bigdata-jini.lib}/classserver.jar"
todir="${dist.lib}" />
<copy file="${bigdata-jini.lib}/jsk-lib.jar"
todir="${dist.lib}" />
<copy file="${bigdata-jini.lib}/jsk-platform.jar"
todir="${dist.lib}" />
<copy file="${bigdata-jini.lib}/jsk-resources.jar"
todir="${dist.lib}" />
<copy file="${bigdata-jini.lib}/reggie.jar"
todir="${dist.lib}" />
<copy file="${bigdata-jini.lib}/start.jar"
todir="${dist.lib}" />
<copy file="${bigdata-jini.lib}/tools.jar"
todir="${dist.lib}" />
<property name="bigdata-jini.lib.dl" location="${bigdata.dir}/bigdata-jini/lib/jini/lib-dl" />
<copy file="${bigdata-jini.lib.dl}/browser-dl.jar"
todir="${dist.lib.dl}" />
<copy file="${bigdata-jini.lib.dl}/group-dl.jar"
todir="${dist.lib.dl}" />
<copy file="${bigdata-jini.lib.dl}/jsk-dl.jar"
todir="${dist.lib.dl}" />
<copy file="${bigdata-jini.lib.dl}/phoenix-dl.jar"
todir="${dist.lib.dl}" />
<copy file="${bigdata-jini.lib.dl}/reggie-dl.jar/"
todir="${dist.lib.dl}" />
<copy file="${bigdata-jini.lib.dl}/sdm-dl.jar"
todir="${dist.lib.dl}" />
<property name="bigdata-jini.lib.ext" location="${bigdata.dir}/bigdata-jini/lib/jini/lib-ext" />
<copy file="${bigdata-jini.lib.ext}/jsk-policy.jar"
todir="${dist.lib.ext}" />
<!-- Bigdata library -->
<property name="bigdata.jar" location="${bigdata.dir}/${build.dir}/${version}.jar" />
<copy file="${bigdata.dir}/${build.dir}/${version}.jar"
tofile="${dist.lib}/bigdata.jar" />
<property name="src.resources" location="${bigdata.dir}/src/resources" />
<property name="src.resources.config" location="${src.resources}/config" />
<!-- Stage the top-level bigdata deployment configuration files -->
<property name="build.properties.from.file" location="${bigdata.dir}/build.properties" />
<copy file="${build.properties.from.file}"
todir="${dist.var.config}" />
<!-- Stage utility scripts and related resources -->
<copy file="${src.resources}/bin/disco-tool"
todir="${dist.bin}" />
<chmod file="${dist.bin}/disco-tool" perm="755" />
<copy file="${src.resources}/bin/pstart"