-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.xml
553 lines (451 loc) · 22.3 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
<!--======================================================================
Build file for OpenSextantToolbox.
=======================================================================-->
<project name="OpenSextantToolbox" basedir="." default="release" xmlns:ivy="antlib:org.apache.ivy.ant">
<!-- include properties -->
<property file="build.properties" />
<!--set the time stamps -->
<tstamp />
<!-- Project level properties -->
<property name="project.name" value="OpenSextantToolbox" />
<property name="version" value="3.0" />
<property name="releaseStatus" value="integration" />
<property name="java_target_version" value="1.8" />
<!-- Source directory - contains the Java source files for this project -->
<property name="src.dir" location="src" />
<!-- directory to contain the created jars -->
<property name="build.dir" location="build" />
<!-- documentation directories -->
<property name="doc.dir" location="${basedir}/doc" />
<property name="javadoc.dir" location="${doc.dir}/javadoc" />
<!-- lib directories -->
<property name="lib.dir" location="lib" />
<!-- directory to contain the release -->
<property name="release.dir" location="${basedir}/release" />
<!-- location of the Language Resources directory -->
<property name="resources.home" location="./LanguageResources" />
<!-- location for the generated JAR files -->
<property name="core.jar.location" location="${build.dir}/opensextant.jar" />
<property name="toolbox.jar.location" location="${build.dir}/opensextant-toolbox.jar" />
<!-- location of the license file -->
<property name="license.location" location="../LICENSE.txt" />
<!-- Classpath for compiling -->
<path id="compile.classpath">
<fileset dir="${lib.dir}/GATE" includes="**/*.jar" />
<fileset dir="${lib.dir}/Standalone" includes="**/*.jar" />
</path>
<!--Gazetteer URL and version as tagged in Gazettteer Release -->
<property name="gazetteerVersion" value="v20160717" />
<property name="gaz.file.name" value="opensextant-gazetteer.zip" />
<property name="gazetteer.url" value="https://github.com/OpenSextant/Gazetteer/releases/download/${gazetteerVersion}/${gaz.file.name}" />
<!-- Classpath to run solr gazetteer loader -->
<path id="solr.runtime.classpath">
<fileset dir="${build.dir}" includes="opensextant.jar" />
<fileset dir="${lib.dir}/Standalone" includes="**/*.jar" />
</path>
<!-- Properties for creating/loading the Solr gazetteer -->
<property name="solr.home" location="${basedir}/build/solr" />
<!-- For testing we can use "MergedGazetteer_SMALL.txt", for production use MergedGazetteer.txt -->
<!--property name="csv.gaz" value="${resources.home}/resources/geoGazetteer/MergedGazetteer.txt" /-->
<property name="csv.gaz" value="${resources.home}/resources/geoGazetteer/MergedGazetteer_SMALL.txt" />
<!--property name="fieldnames.gaz" value="id,place_id,name,lat,lon,feat_class,feat_code,FIPS_cc,cc,ISO3_cc,adm1,adm2,adm3,adm4,adm5,source,src_place_id,src_name_id,script,conflate_key,name_bias,id_bias,name_type,name_type_system,partition" /-->
<property name="index.vocab" value="${resources.home}/resources/Vocabularies/vocab.def" />
<!--property name="fieldnames.vocab" value="id,phrase,category,taxonomy" /-->
<!-- Properties for example code -->
<!-- Classpath to run example code which uses GATE -->
<path id="examples.runtime.classpath">
<fileset dir="${release.dir}/lib" includes="**/*.jar" />
</path>
<!-- classpath to run the components that don't need Gate -->
<path id="examples.runtime.standalone.classpath">
<fileset dir="${release.dir}/lib" includes="*.jar" />
</path>
<!-- location of the test data -->
<property name="test.testdocs.dir" location="${release.dir}/LanguageResources/TestData/testDocs" />
<property name="test.matcher.file" location="${release.dir}/LanguageResources/TestData/MatcherTestData/matcherTest.txt" />
<property name="test.dateTest.file" location="${release.dir}/LanguageResources/TestData/RegexTestData/dateTime_test.csv" />
<property name="test.geoTest.file" location="${release.dir}/LanguageResources/TestData/RegexTestData/geocoord_test.csv" />
<!-- location of the GAPP and pattern files -->
<property name="test.gapp.geotagger" location="${release.dir}/LanguageResources/GAPPs/OpenSextant_Geotagger.gapp" />
<property name="test.gapp.generalPurpose" location="${release.dir}/LanguageResources/GAPPs/OpenSextant_GeneralPurpose.gapp" />
<property name="test.patterns.date" location="${release.dir}/LanguageResources/resources/patterns/datetime_patterns2.cfg" />
<property name="test.patterns.geo" location="${release.dir}/LanguageResources/resources/patterns/geocoord_regex.cfg" />
<property name="test.patterns.results" location="${release.dir}/LanguageResources/TestData/results" />
<!-- Properties for local GATE install -->
<property name="gate.plugin.dir" location="${gate.home}/plugins" />
<property name="toolbox.plugin.dir" location="${gate.plugin.dir}/OpenSextantToolbox" />
<!-- properties for ivy config -->
<property name="ivy.install.version" value="2.1.0-rc2" />
<condition property="ivy.home" value="${env.IVY_HOME}">
<isset property="env.IVY_HOME" />
</condition>
<property name="ivy.home" value="${user.home}/.ant" />
<property name="ivy.jar.dir" value="${ivy.home}/lib" />
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar" />
<!--====================== Targets ============================-->
<target name="setup">
<mkdir dir="${build.dir}" />
<antcall target="setProxy" />
</target>
<!--Make sure ivy is installed -->
<target name="download-ivy" unless="offline">
<mkdir dir="${ivy.jar.dir}" />
<get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" dest="${ivy.jar.file}" usetimestamp="true" />
</target>
<target name="init-ivy" depends="download-ivy">
<path id="ivy.lib.path">
<fileset dir="${ivy.jar.dir}" includes="*.jar" />
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />
</target>
<!-- delete created jars,retrieved dependencies,javadocs and previous releases-->
<!-- NOTE: this leaves the created Gazetteer (see clean.gaz target) -->
<target name="clean" depends="setup">
<delete includeEmptyDirs="true">
<fileset dir="${build.dir}" excludes="solr/**,opensextant-gazetteer.zip" />
</delete>
<delete dir="${release.dir}" />
<delete dir="${lib.dir}" />
<delete dir="${javadoc.dir}" />
<mkdir dir="${build.dir}" />
<mkdir dir="${release.dir}" />
<mkdir dir="${lib.dir}" />
<mkdir dir="${javadoc.dir}" />
</target>
<!-- delete the created Solr gazetteer -->
<!-- NOTE: creating (loading) the gazetteer takes a while so don't delete if even mildly impatient -->
<target name="clean.gaz" depends="setup">
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${solr.home}" />
</delete>
</target>
<!-- set the proxy if behind a firewall (needed for ivy) -->
<!-- the host and proxy values are set in the build.properties file -->
<!-- omit from build.properties if no proxy -->
<target name="setProxy">
<property name="proxy.host" value="" />
<property name="proxy.port" value="80" />
<setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" />
</target>
<!-- get all the ivy defined dependencies and the gazetteer -->
<target name="getDependencies" depends="clean">
<ivy:retrieve pattern="${ivy.lib.dir}/[conf]/[artifact].[ext]" />
<ivy:report todir="${build.dir}/ivy-report" graph="true" />
<antcall target="getGazetteer" />
</target>
<target name="check-gazetteer">
<available file="${build.dir}/${gaz.file.name}" property="gaz.present" />
</target>
<target name="getGazetteer" depends="check-gazetteer" unless="gaz.present">
<get src="${gazetteer.url}" dest="${build.dir}" />
<unzip src="${build.dir}/${gaz.file.name}" dest="${resources.home}/resources/geoGazetteer" />
</target>
<!-- compile the source -->
<target name="compile" depends="setup,getDependencies">
<javac classpathref="compile.classpath" srcdir="${src.dir}" destdir="${build.dir}" debug="true" debuglevel="lines,source" source="${java_target_version}" encoding="utf-8" />
</target>
<!-- create the JAR files -->
<target name="jar" depends="compile">
<jar destfile="${core.jar.location}" update="false" basedir="${build.dir}">
<include name="org/opensextant/**" />
<exclude name="org/opensextant/toolbox/**" />
</jar>
<jar destfile="${toolbox.jar.location}" update="false" basedir="${build.dir}">
<include name="org/opensextant/toolbox/**" />
</jar>
</target>
<target name="plugin" depends="jar">
<!-- zip up the toolbox jar and the creole.xml -->
<zip destfile="${build.dir}/opensextant-toolbox-plugin.zip">
<zipfileset file="${basedir}/gate/creole.xml" prefix="OpenSextantToolbox" />
<zipfileset file="${build.dir}/opensextant-toolbox.jar" prefix="OpenSextantToolbox/lib" />
</zip>
</target>
<!-- Build and populate the Solr gazetteer -->
<target name="build.gaz">
<antcall target="clean.gaz" />
<antcall target="create.solr.home" />
<antcall target="load.gazetteer" />
<!--antcall target="load.vocabulary.index" /-->
</target>
<!-- create the empty solr home directory -->
<target name="create.solr.home">
<copy todir="${solr.home}">
<fileset dir="${basedir}/solr">
<include name="**/*" />
</fileset>
</copy>
</target>
<!-- Load the gazetteer data into Solr -->
<!-- NOTE: this is the step that takes a long time -->
<target name="load.gazetteer">
<java classname="org.opensextant.matching.DataLoader" classpathref="solr.runtime.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx3G" />
<jvmarg value="-Dlog4j.configuration=file:${basedir}/etc/log4j.properties" />
<jvmarg value="-Dsolr.home=${solr.home}" />
<arg value="gazetteer" />
<arg value="CSV" />
<arg value="${csv.gaz}" />
</java>
</target>
<!-- Load the vocabulary data into Solr (from a vocab index file)-->
<!--target name="load.vocabulary.index">
<java classname="org.opensextant.matching.DataLoader" classpathref="solr.runtime.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx3G" />
<jvmarg value="-XX:MaxPermSize=256m" />
<jvmarg value="-Dlog4j.configuration=file:${basedir}/etc/log4j.properties" />
<jvmarg value="-Dsolr.home=${solr.home}" />
<arg value="vocabulary" />
<arg value="INDEX" />
<arg value="${index.vocab}" />
</java>
</target-->
<!-- create JavaDoc directory -->
<target name="javadoc.prepare">
<delete dir="${javadoc.dir}" />
<mkdir dir="${javadoc.dir}" />
</target>
<!-- Generate JavaDoc documentation for this project -->
<target name="javadoc" depends="javadoc.prepare">
<javadoc destdir="${javadoc.dir}" packagenames="*" classpathref="compile.classpath" encoding="utf-8" access="public" windowtitle="OpenSextant JavaDoc">
<sourcepath>
<pathelement location="${src.dir}" />
</sourcepath>
</javadoc>
</target>
<!-- Main target: Build the whole thing (except for loading the gazetteer -->
<target name="build" depends="plugin" />
<!-- Build the jars and load the gazetteer (which takes a while) -->
<target name="buildWithGaz" depends="plugin,build.gaz" />
<!-- create release directory structure -->
<target name="release.prepare">
<delete dir="${release.dir}" />
<mkdir dir="${release.dir}" />
<mkdir dir="${release.dir}/lib" />
<mkdir dir="${release.dir}/plugins" />
<mkdir dir="${release.dir}/LanguageResources" />
<mkdir dir="${release.dir}/solr" />
<mkdir dir="${release.dir}/etc" />
</target>
<!-- copy over jars to the release directory -->
<target name="release.libs" depends="">
<copy todir="${release.dir}/lib">
<fileset file="${core.jar.location}" />
<fileset dir="${basedir}/lib/Standalone" />
</copy>
<copy todir="${release.dir}/lib/GATE">
<fileset dir="${basedir}/lib/GATE">
<include name="*.jar" />
</fileset>
</copy>
</target>
<!-- copy over the plugin to the release directory -->
<target name="release.plugin" depends="">
<copy file="${basedir}/gate/creole.xml" tofile="${release.dir}/plugins/OpenSextantToolbox/creole.xml" />
<copy todir="${release.dir}/plugins/OpenSextantToolbox/lib">
<fileset file="${toolbox.jar.location}" />
</copy>
<copy todir="${release.dir}/plugins/ANNIE">
<fileset dir="${basedir}/gate/plugins/ANNIE" />
</copy>
</target>
<!-- Copy over the resource files -->
<target name="release.resources">
<copy todir="${release.dir}/LanguageResources">
<fileset dir="${resources.home}">
<exclude name="**/geoGazetteer/" />
</fileset>
</copy>
</target>
<!-- Copy over the some misc config stuff -->
<target name="release.misc">
<copy todir="${release.dir}/etc" file="${basedir}/etc/log4j.properties" />
<copy todir="${release.dir}/etc" file="${basedir}/etc/restletlog.properties" />
<copy todir="${release.dir}/etc" file="${basedir}/etc/service-config.properties" />
<copy todir="${release.dir}" file="${basedir}/gate/gate.xml" />
<copy todir="${release.dir}" file="${basedir}/gate/user-gate.xml" />
<copy todir="${release.dir}" file="${doc.dir}/README_DISTRO.txt" />
</target>
<!-- Copy over the scritps -->
<target name="release.scripts">
<copy todir="${release.dir}/scripts">
<fileset dir="${basedir}/scripts" />
</copy>
</target>
<!-- Copy the gaz to the release folder-->
<target name="release.gaz">
<copy todir="${release.dir}/solr">
<fileset dir="${build.dir}/solr" />
</copy>
</target>
<!-- Build a full release in the "release" directory -->
<target name="release" depends="buildWithGaz">
<antcall target="release.prepare" />
<antcall target="release.libs" />
<antcall target="release.plugin" />
<antcall target="release.resources" />
<antcall target="release.gaz" />
<antcall target="release.misc" />
<antcall target="release.scripts" />
<!-- delete existing release zip if there -->
<delete quiet="true" file="${basedir}/opensextant-toolbox-${version}.zip" />
<!-- zip up the finished release -->
<zip destfile="${basedir}/opensextant-toolbox-${version}.zip">
<zipfileset dir="${release.dir}" prefix="opensextant-toolbox-${version}" />
</zip>
</target>
<!-- Build a release without the gazetteer in the "release" directory for cloud foundry -->
<target name="release-pcf" depends="build">
<antcall target="release.libs" />
<antcall target="release.plugin" />
<antcall target="release.resources" />
<antcall target="release.misc" />
<copy todir="${release.dir}/bin" file="${basedir}/scripts/opensextant-toolbox" />
<!-- delete existing release zip if there -->
<delete quiet="true" file="${basedir}/opensextant-toolbox-${version}-pcf.zip" />
<!-- zip up the finished release -->
<zip destfile="${basedir}/opensextant-toolbox-${version}-pcf.zip">
<zipfileset dir="${release.dir}" prefix="opensextant-toolbox-${version}-pcf" />
</zip>
</target>
<target name="test" depends="release,run.examples" />
<!-- the following targets asssume a release has been built but doesn't trigger one if it is not -->
<!-- run some simple examples -->
<target name="run.examples">
<antcall target="example.geotagger" />
<antcall target="example.generalPurposeTagger" />
<antcall target="example.placeNameMatcher" />
<!--antcall target="example.vocabMatcher" /-->
<antcall target="example.placeNameSearch" />
<antcall target="example.dateRegexMatcher" />
<antcall target="example.geoRegexMatcher" />
</target>
<target name="example.geotagger">
<echo>-----------------------------------------------</echo>
<echo>Running the Geotagger Example</echo>
<echo>-----------------------------------------------</echo>
<!-- run the geotagger example-->
<java classname="org.opensextant.examples.GeotaggerExample" classpathref="examples.runtime.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx2G" />
<jvmarg value="-Dgate.home=${release.dir}" />
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<env key="solr.home" value="${release.dir}/solr" />
<arg value="${test.gapp.geotagger}" />
<arg value="${test.testdocs.dir}" />
</java>
</target>
<target name="example.generalPurposeTagger">
<echo>-------------------------------------------------------------------------------</echo>
<echo>Running the General Purpose Entity Extractor Example</echo>
<echo>-------------------------------------------------------------------------------</echo>
<!-- run the general purpose tagger example-->
<java classname="org.opensextant.examples.GeneralPurposeTaggerExample" classpathref="examples.runtime.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx2G" />
<jvmarg value="-Dgate.home=${release.dir}" />
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<env key="solr.home" value="${release.dir}/solr" />
<arg value="${test.gapp.generalPurpose}" />
<arg value="${test.testdocs.dir}" />
</java>
</target>
<target name="example.placeNameMatcher">
<echo>--------------------------------------------------</echo>
<echo>Running the place name Matcher Example</echo>
<echo>--------------------------------------------------</echo>
<!-- run the matcher example -->
<java classname="org.opensextant.examples.MatcherTest" classpathref="examples.runtime.standalone.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx500M" />
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<env key="solr.home" value="${release.dir}/solr" />
<!--arg value="${release.dir}/Gazetteer/solr" /-->
<arg value="${test.matcher.file}" />
</java>
</target>
<target name="example.vocabMatcher">
<echo>--------------------------------------------------</echo>
<echo>Running the vocabulary Matcher Example</echo>
<echo>--------------------------------------------------</echo>
<!-- run the matcher example -->
<java classname="org.opensextant.examples.VocabMatcherTest" classpathref="examples.runtime.standalone.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx500M" />
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<!--jvmarg value="-Dsolr.home=${release.dir}/solr" /-->
<env key="solr.home" value="${release.dir}/solr" />
<arg value="${test.testdocs.dir}/test.txt" />
<!--arg value="${release.dir}/solr" /-->
</java>
</target>
<target name="example.placeNameSearch">
<echo>--------------------------------------------------</echo>
<echo>Running the Solr Searcher Example</echo>
<echo>--------------------------------------------------</echo>
<!-- run the searcher example -->
<java classname="org.opensextant.examples.SearcherTest" classpathref="examples.runtime.standalone.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx500M" />
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<env key="solr.home" value="${release.dir}/solr" />
<!--arg value="${release.dir}/Gazetteer/solr" /-->
</java>
</target>
<target name="example.dateRegexMatcher">
<echo>--------------------------------------------------</echo>
<echo>Running the Date Regex Matcher Example</echo>
<echo>--------------------------------------------------</echo>
<!-- run the date regex example -->
<java classname="org.opensextant.examples.RegexTest" classpathref="examples.runtime.standalone.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx500M" />
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<arg value="${test.dateTest.file}" />
<arg value="${test.patterns.date}" />
<arg value="${test.patterns.results}/dateResults.txt" />
</java>
</target>
<target name="example.geoRegexMatcher">
<echo>--------------------------------------------------</echo>
<echo>Running the Geocoord Regex Matcher Example</echo>
<echo>--------------------------------------------------</echo>
<!-- run the geocoord regex example -->
<java classname="org.opensextant.examples.RegexTest" classpathref="examples.runtime.standalone.classpath" fork="yes" dir="${basedir}">
<jvmarg value="-Xmx500M" />
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<arg value="${test.geoTest.file}" />
<arg value="${test.patterns.geo}" />
<arg value="${test.patterns.results}/geoResults.txt" />
</java>
</target>
<target name="example.serviceClient">
<echo />
<echo>--------------------------------------------------</echo>
<echo>Running the Service Client Example</echo>
<echo>--------------------------------------------------</echo>
<!-- run the geocoord regex example -->
<java classname="org.opensextant.service.processing.ServiceDriver" classpathref="examples.runtime.standalone.classpath" fork="yes" dir="${basedir}">
<!-- add some memory -->
<jvmarg value="-Xmx500M" />
<!-- point to the log config file -->
<jvmarg value="-Dlog4j.configuration=file:${release.dir}/etc/log4j.properties" />
<!-- directory containing the test doc -->
<arg value="${test.testdocs.dir}" />
<!-- host of the extractor service -->
<arg value="localhost" />
<!-- number of submitter threads-->
<arg value="12" />
</java>
</target>
<!-- deploy OpenSextantToolbox to a local GATE installation to test -->
<!-- NOTE: this target presumes a release has been built but doesnt trigger one -->
<target name="toolbox.deploy" depends="">
<delete dir="${toolbox.plugin.dir}" />
<!-- unzip the toolbox plugin zip into GATE_HOME/plugins -->
<unzip src="${build.dir}/opensextant-toolbox-plugin.zip" dest="${gate.plugin.dir}" />
<!-- copy over the other jars libs from release -->
<copy todir="${toolbox.plugin.dir}/lib_extra">
<fileset dir="${lib.dir}/Standalone">
<include name="*.jar" />
<exclude name="**/GATE/**" />
</fileset>
<fileset file="${build.dir}/opensextant.jar" />
</copy>
<echo> Remember to add -Dgate.class.path=GATE_HOME/plugins/OpensextantToolbox/lib_extra/* and -Dsolr.home=WHERE.YOU.UNZIPPED.THE.RELEASE/solr to your gate.l4j.ini or other start up script </echo>
</target>
</project>