-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
596 lines (502 loc) · 27.1 KB
/
build.xml
File metadata and controls
596 lines (502 loc) · 27.1 KB
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
<?xml version="1.0" ?>
<project name="NetRexx" basedir="." default="default">
<property name="examples" value="examples" description="example directory"/>
<property name="build.sysclasspath" value="ignore"/>
<!-- =================================================================== -->
<!-- NetRexx default settings -->
<!-- =================================================================== -->
<property name="ant.netrexxc.binary" value="yes"/>
<property name="ant.netrexxc.comments" value="true"/>
<property name="ant.netrexxc.compact" value="true"/>
<property name="ant.netrexxc.crossref" value="no"/>
<property name="ant.netrexxc.format" value="true"/>
<property name="ant.netrexxc.keep" value="true"/>
<property name="ant.netrexxc.keepasjava" value="true"/>
<property name="ant.netrexxc.logo" value="true"/>
<property name="ant.netrexxc.removeKeepExtension" value="no"/>
<property name="ant.netrexxc.replace" value="yes"/>
<property name="ant.netrexxc.strictargs" value="yes"/>
<property name="ant.netrexxc.strictcase" value="yes"/>
<property name="ant.netrexxc.strictsignal" value="yes"/>
<property name="ant.netrexxc.suppressDeprecation" value="true"/>
<property name="ant.netrexxc.suppressExceptionNotSignalled" value="false"/>
<property name="ant.netrexxc.suppressMethodArgumentNotUsed" value="true"/>
<property name="ant.netrexxc.suppressPrivatePropertyNotUsed" value="true"/>
<property name="ant.netrexxc.suppressVariableNotUsed" value="false"/>
<property name="ant.netrexxc.verbose" value="verbose1"/>
<property name="ant.netrexxc.console" value="false"/>
<property name="ant.netrexxc.java" value="true"/>
<property name="ant.netrexxc.time" value="true"/>
<property name="ant.netrexxc.source" value="1.8"/>
<property name="ant.netrexxc.target" value="1.8"/>
<!-- =================================================================== -->
<!-- Project properties -->
<!-- =================================================================== -->
<property name="name" value="NetRexx"/>
<property name="root" location="."/>
<property name="sources" value="${root}/src"/>
<property name="build" value="${root}/build"/>
<property name="package" value="${root}/package"/>
<property name="build.lib" value="${build}/lib"/>
<property name="build.classes" value="${build}/classes"/>
<property name="runtimeDir" value="netrexx/lang"/>
<property name="compilerDir" value="org/netrexx/process"/>
<property name="buildtoolsDir" value="org/netrexx/buildtools"/>
<property name="eclipseDir" value="org/eclipse"/>
<property name="jlineDir" value="org/jline"/>
<property name="jsonDir" value="org/json"/>
<property name="jsr223Dir" value="org/netrexx/jsr223"/>
<property name="lspDir" value="org/netrexx/lsp"/>
<property name="addressDir" value="org/netrexx/address"/>
<property name="pipesDir" value="org/netrexx/njpipes/pipes"/>
<property name="stagesDir" value="org/netrexx/njpipes/stages"/>
<property name="nrwsDir" value="org/vpad/extra/workpad"/>
<property name="antsrcDir" value="tools/ant-task"/>
<property name="anttaskDir" value="org/apache/tools/ant/taskdefs/optional"/>
<property name="testsDir" value="org/netrexx/diag"/>
<property name="unitTestsDir" value="test"/>
<property name="oldAPI" value="COM/ibm/netrexx/process"/>
<property name="oldAPINAME" value="COM.ibm.netrexx.process"/>
<property name="RUNTIME" value="${build.classes}/netrexx/lang/" description="Runtime directory"/>
<property name="RUNTIMENAME" value="netrexx.lang" description="Runtime prefix"/>
<property name="COMPILER" value="${build.classes}/org/netrexx/process/" />
<property name="COMPILERNAME" value="org.netrexx.process"/>
<property name="DIAG" value="${build.classes}/org/netrexx/diag/"/>
<property name="DIAGNAME" value="org.netrexx.diag"/>
<property name="DOCPATH" value="${build}/javadocs"/>
<property name="DOCTITLE" value="NetRexx documentation:"/>
<property name="WINDOWTITLE" value="NetRexx Javadocs"/>
<property name="HEADER" value="NetRexx class documentation"/>
<property name="BOTTOM" value="Provided by RexxLA - The Rexx Language Association"/>
<property name="build.sysclasspath" value="ignore"/>
<!-- =================================================================== -->
<!-- Preparation / creating build directories -->
<!-- =================================================================== -->
<target name="prepare">
<property name="ant.netrexxc.javacompiler" value="javac -source ${ant.netrexxc.source} -target ${ant.netrexxc.target}"/>
<mkdir dir="${build}"/>
<mkdir dir="${build.lib}"/>
<mkdir dir="${build.classes}"/>
<!-- Common Classpath -->
<path id="common.class.path">
<fileset dir="${java.home}/lib">
<include name="tools.jar"/>
</fileset>
<fileset dir="${java.home}/../lib" erroronmissingdir="false">
<include name="tools.jar"/>
</fileset>
<fileset dir="${java.home}/.." erroronmissingdir="false">
<include name="jdk*/lib/tools.jar"/>
</fileset>
<fileset dir="${java.home}/bundle/Classes" erroronmissingdir="false">
<include name="*.jar"/>
</fileset>
<fileset dir="${root}/ant">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- Build Classpath has build.classes prepended, all libs included -->
<path id="build.class.path">
<path refid="common.class.path"/>
<pathelement path="${build.classes}"/>
<fileset dir="${root}/lib">
<include name="**/*.jar"/>
</fileset>
</path>
<pathconvert property="build.classpath" refid="build.class.path"/>
<!-- Test Classpath now uses the fresh NetRexxC.jar being built -->
<path id="test.class.path">
<path refid="common.class.path"/>
<pathelement path="${build.lib}${file.separator}NetRexxC.jar"/>
<pathelement path="${build.classes}"/>
<fileset dir="${root}/lib">
<include name="**/*.jar"/>
<exclude name="NetRexxC.jar"/>
</fileset>
</path>
<pathconvert property="test.classpath" refid="test.class.path"/>
<!-- two netrexx compilers, one for building, later the built one for testing -->
<taskdef name="buildnrc" classname="org.apache.tools.ant.taskdefs.optional.NetRexx" classpath="${build.classpath}"/>
</target>
<target name="post.jar.prepare" depends="prepare" description="post jar build - define new NetRexx compiler">
<taskdef name="testnrc" classname="org.apache.tools.ant.taskdefs.optional.NetRexx" classpath="${test.classpath}"/>
</target>
<target name="compile.runtime" depends="prepare" description="compile runtime">
<pathconvert pathsep="${line.separator}| |-- "
property="echo.path.compile"
refid="build.class.path">
</pathconvert>
<echo message="| |"/>
<echo message="|-- compile classpath"/>
<echo message="| |"/>
<echo message="| |-- ${echo.path.compile}"/>
<echo message="| |"/>
<buildnrc srcDir="${sources}/${runtimeDir}" destDir="${build.classes}/${runtimeDir}" classpath="${build.classpath}"
includes="*.nrx" excludes="RexxDictionary.nrx" compile="yes" />
</target>
<target name="clean.runtime" description="delete built runtime files">
<delete dir="${build.classes}/netrexx/lang"/>
</target>
<target name="compile.process" depends="compile.runtime" description="compile translator">
<!-- There's an outstanding issue with the compiler regarding the order of the files given and the dependency
resolution. The best way to fix that is to break the build into smaller chunks and avoiding circular
dependencies. As the latter will be fixed in the future, I hope, this two-step compile get's things up
and running for the moment.
-->
<buildnrc srcDir="${sources}/${compilerDir}" destDir="${build.classes}/${compilerDir}" classpath="${build.classpath}"
includes="RxFlag.nrx NrAnsi.nrx NrVersion.nrx RxChunk.nrx RxConvert.nrx RxProcessor.nrx RxSource.nrx RxToken.nrx
RuntimeConstants.nrx
RxSignalPend.nrx RxType.nrx RxMessageOutput.nrx RxMessage.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${compilerDir}" destDir="${build.classes}/${compilerDir}" classpath="${build.classpath}"
includes="*.nrx" excludes="NetRexxS.nrx,NetRexxInterpreter.nrx,Nrx.nrx
RuntimeConstants.nrx
NrVersion.nrx RxChunk.nrx RxConvert.nrx RxProcessor.nrx RxSource.nrx RxToken.nrx
RxSignalPend.nrx RxType.nrx RxMessageOutput.nrx RxMessage.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${jsr223Dir}" destDir="${build.classes}/${jsr223Dir}" classpath="${build.classpath}"
includes="*.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${lspDir}" destDir="${build.classes}/${lspDir}" classpath="${build.classpath}"
includes="*.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${buildtoolsDir}" destDir="${build.classes}/${buildtoolsDir}" classpath="${build.classpath}"
includes="*.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${addressDir}" destDir="${build.classes}/${addressDir}" classpath="${build.classpath}"
includes="*.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${oldAPI}" destDir="${build.classes}/${oldAPI}" classpath="${build.classpath}"
includes="*.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${antsrcDir}" destDir="${build.classes}/${anttaskDir}" classpath="${build.classpath}"
includes="*.nrx" excludes="Nrxc.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${pipesDir}" destDir="${build.classes}/${pipesDir}" classpath="${build.classpath}"
includes="link.nrx pnode.nrx pipe.nrx _stage.nrx
stage.nrx StageError.nrx utils.nrx DString.nrx
IRange.nrx RingBuf.nrx RunnablePool.nrx ThreadPool.nrx ThreadQ.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${stagesDir}" destDir="${build.classes}/${stagesDir}" classpath="${build.classpath}"
includes="*.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${pipesDir}" destDir="${build.classes}/${pipesDir}" classpath="${build.classpath}"
includes="compiler.nrx runner.nrx filterNjp.nrx pipe2nrx.nrx processNjp.nrx readconfig.nrx readgroup.nrx writepipe.nrx" java="yes" compile="yes" />
<buildnrc srcDir="${sources}/${nrwsDir}" destDir="${build.classes}/${nrwsDir}" classpath="${build.classpath}"
includes="*.nrx" java="yes" compile="yes" />
<copy file="${sources}/${compilerDir}/NetRexxC.properties" todir="${build.classes}/${compilerDir}"/>
</target>
<target name="clean.process" description="delete built translator files">
<delete dir="${build.classes}/${compilerDir}"/>
<delete dir="${build.classes}/${oldAPI}"/>
</target>
<target name="compile" depends="compile.process" description="compile all (except tests)"/>
<target name="compile.tests" depends="compile, jars,post.jar.prepare" description="compile tests">
<pathconvert pathsep="${line.separator}| |-- "
property="echo.path.test"
refid="test.class.path">
</pathconvert>
<echo message="| |"/>
<echo message="|-- test classpath"/>
<echo message="| |"/>
<echo message="| |-- ${echo.path.test}"/>
<echo message="| |"/>
<testnrc srcDir="${sources}/${testsDir}" destDir="${build.classes}/${testsDir}" classpath="${test.classpath}" strictcase="no" strictargs="no" strictsignal="no"
includes="DiagX.nrx" java="yes" compile="yes" />
<testnrc srcDir="${sources}/${testsDir}" destDir="${build.classes}/${testsDir}" classpath="${test.classpath}" strictcase="no" strictargs="no" strictsignal="no"
includes="*.nrx" excludes="DiagUTF8.nrx DiagAll.nrx DiagInterpret.nrx" java="yes" compile="yes" />
<testnrc srcDir="${sources}/${testsDir}" destDir="${build.classes}/${testsDir}" classpath="${test.classpath}" strictcase="no" strictargs="no" strictsignal="no" utf8="true"
includes="DiagUTF8.nrx" java="yes" compile="yes" />
<testnrc srcDir="${sources}/${testsDir}" destDir="${build.classes}/${testsDir}" classpath="${test.classpath}" strictcase="no" strictargs="no" strictsignal="no"
includes="DiagAll.nrx" java="yes" compile="yes" />
<testnrc srcDir="${unitTestsDir}"
destDir="${build.classes}/${testsDir}"
classpath="${test.classpath}" strictcase="no"
strictargs="no" strictsignal="no" binary="no"
includes="*.nrx" excludes="testUTF8Default.nrx DiagInterpret.nrx" java="yes" compile="yes" />
</target>
<target name="-checkRunTestsRequired" depends="compile.tests">
<uptodate property="noRunTestsRequired" targetfile="${build.classes}/${testsDir}/lastTestRun.ts">
<srcfiles dir="${sources}/${runtimeDir}" includes="**/*"/>
<srcfiles dir="${sources}/${compilerDir}" includes="**/*"/>
<srcfiles dir="${sources}/${testsDir}" includes="**/*"/>
</uptodate>
</target>
<target name="run.tests" depends="-checkRunTestsRequired" unless="noRunTestsRequired">
<copy file="${sources}/${testsDir}/DiagInterpret.nrx" todir="${build.classes}/${testsDir}" />
<java classname="org.netrexx.process.NetRexxC" classpath="${test.classpath}" failonerror="true" fork="yes"
dir="${build.classes}/${testsDir}">
<arg value="-exec"/>
<arg value="DiagInterpret"/>
<!-- <arg value="DiagX" />
-->
</java>
<java classname="org.netrexx.diag.DiagAll" classpath="${test.classpath}" failonerror="true" fork="yes"/>
<touch file="${build.classes}/${testsDir}/lastTestRun.ts"/>
</target>
<target name="clean.tests" description="delete test files">
<delete dir="${build.classes}/${testsDir}"/>
</target>
<target name="tests" depends="run.tests" description="compile and run tests"/>
<target name="jars" depends="init,compile" description="create jars">
<jar jarfile="${build.lib}/NetRexxR.jar" compress="yes" filesonly="true">
<fileset dir="${build.classes}">
<include name="${runtimeDir}/*.class"/>
</fileset>
<fileset dir="${root}">
<include name="LICENSE"/>
</fileset>
<manifest>
<attribute name="Implementation-Vendor" value="Rexx Language Association"/>
<attribute name="Implementation-Title" value="NetRexx Runtime Library"/>
<attribute name="Implementation-Version" value="${ant.project.name} ${version} ${mod}, ${build.id.string}"/>
<attribute name="Implementation-Build" value="${build.id.string}"/>
</manifest>
</jar>
<unzip dest="${build.classes}">
<fileset dir="ant">
<include name="jline-*.jar"/>
<include name="json*.jar"/>
</fileset>
</unzip>
<unzip dest="${build.classes}">
<fileset dir="lib">
<include name="ant-netrexx.jar"/>
</fileset>
</unzip>
<jar jarfile="${build.lib}/NetRexxC.jar" compress="yes" filesonly="true" manifest="${sources}/manifest">
<fileset dir="${build.classes}">
<include name="${runtimeDir}/*.class"/>
<include name="${compilerDir}/*.class"/>
<include name="${jsr223Dir}/*.class"/>
<include name="${lspDir}/*.class"/>
<include name="${buildtoolsDir}/*.class"/>
<include name="${addressDir}/*.class"/>
<include name="${pipesDir}/*.class"/>
<include name="${stagesDir}/*.class"/>
<include name="${nrwsDir}/*.class"/>
<include name="${jlineDir}/"/>
<include name="${jsonDir}/"/>
<include name="${oldAPI}/*.class"/>
<include name="${anttaskDir}/*.class"/>
<include name="${compilerDir}/*.properties"/>
</fileset>
<fileset dir="${root}">
<include name="LICENSE"/>
</fileset>
<fileset dir="${root}">
<include name="META-INF/"/>
</fileset>
<manifest>
<attribute name="Implementation-Vendor" value="Rexx Language Association"/>
<attribute name="Implementation-Title" value="NetRexx Translator"/>
<attribute name="Implementation-Version" value="${ant.project.name} ${version} ${mod}, ${build.id.string}"/>
<attribute name="Implementation-Build" value="${build.id.string}"/>
<attribute name="Main-Class" value="org.netrexx.process.NetRexxC"/>
</manifest>
</jar>
<jar jarfile="${build.lib}/ant-netrexx.jar" compress="yes" filesonly="true">
<fileset dir="${build.classes}">
<include name="${anttaskDir}/*.class"/>
</fileset>
<fileset dir="${root}">
<include name="LICENSE"/>
</fileset>
<manifest>
<attribute name="Implementation-Vendor" value="Rexx Language Association"/>
<attribute name="Implementation-Title" value="NetRexx Ant Task"/>
<attribute name="Implementation-Version" value="${ant.project.name} ${version} ${mod}, ${build.id.string}"/>
<attribute name="Implementation-Build" value="${build.id.string}"/>
</manifest>
</jar>
<unzip dest="${build.classes}">
<fileset dir="ant">
<include name="ecj*.jar"/>
<include name="jline*.jar"/>
<include name="jansi*.jar"/>
<include name="json*.jar"/>
</fileset>
</unzip>
<unzip dest="${build.classes}">
<fileset dir="lib">
<include name="ant-netrexx.jar"/>
</fileset>
</unzip>
<jar jarfile="${build.lib}/NetRexxF.jar" compress="yes" filesonly="true" manifest="${sources}/manifest">
<fileset dir="${build.classes}">
<include name="${runtimeDir}/*.class"/>
<include name="${compilerDir}/*.class"/>
<include name="${jsr223Dir}/*.class"/>
<include name="${buildtoolsDir}/*.class"/>
<include name="${addressDir}/*.class"/>
<include name="${pipesDir}/*.class"/>
<include name="${stagesDir}/*.class"/>
<include name="${oldAPI}/*.class"/>
<include name="${compilerDir}/*.properties"/>
<include name="${eclipseDir}/"/>
<include name="${jlineDir}/"/>
<include name="${jsonDir}/"/>
<include name="${nrwsDir}/*.class"/>
<include name="${anttaskDir}/*.class"/>
<include name="META-INF/"/>
<include name="about.html"/>
</fileset>
<fileset dir="${root}">
<include name="LICENSE"/>
<include name="minimalmanifest"/>
</fileset>
<fileset dir="${root}">
<include name="META-INF/"/>
</fileset>
<manifest>
<attribute name="Implementation-Vendor" value="Rexx Language Association"/>
<attribute name="Implementation-Title" value="NetRexx with Eclipse compiler"/>
<attribute name="Implementation-Version" value="${ant.project.name} ${version} ${mod}, ${build.id.string}"/>
<attribute name="Implementation-Build" value="${build.id.string}"/>
<attribute name="Main-Class" value="org.netrexx.process.NetRexxC"/>
</manifest>
</jar>
</target>
<target name="clean.jar" description="delete built jars">
<delete dir="${build.lib}"/>
</target>
<target name="apidocs" depends="compile" description="create API documentation">
<javadoc source="${ant.netrexxc.source}" maxmemory="128M" private="true" Author="true" Version="true" breakiterator="yes" Use="true" destdir="${DOCPATH}"
bottom="${BOTTOM}" Header="${HEADER}" Windowtitle="${WINDOWTITLE}" sourcepath="${build.classes}" packagenames="${COMPILERNAME},${RUNTIMENAME},${oldAPINAME}"
classpath=".${path.separator}${RUNTIME}${path.separator}${COMPILER}${path.separator}${build.classpath}" Verbose="false"
>
<doctitle>${DOCTITLE} ${RUNTIMENAME} ${COMPILERNAME}</doctitle>
</javadoc>
</target>
<target name="clean" depends="clean.runtime, clean.process, clean.tests, clean.jar,clean.javadocs" description="delete all built files">
<delete dir="${build}"/>
</target>
<target name="withjavadocs" depends="init,compile, jars, tests, apidocs" description="build distribution and javadocs with test"/>
<target name="setecj" description="set compiler to ecj">
<property name="ant.netrexxc.javacompiler" value="ecj -source ${ant.netrexxc.source} -target ${ant.netrexxc.target}"/>
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
</target>
<target name="setjavac" description="set compiler to javac">
<property name="ant.netrexxc.javacompiler" value="javac -source ${ant.netrexxc.source} -target ${ant.netrexxc.target}"/>
</target>
<target name="default" depends="withecj" description="build and test distribution"/>
<target name="withecj" depends="setecj,compile, jars, tests" description="build and test distribution with ecj"/>
<target name="withjavac" depends="setjavac,compile, jars, tests" description="build and test distribution with javac"/>
<target name="package" depends="" description="build distribution
package">
<java classname="org.netrexx.process.NrVersion"
outputproperty="PACKAGE_NAME" fork="yes">
<classpath>
<pathelement
path="${build.lib}${file.separator}NetRexxC.jar"/>
</classpath>
</java>
<delete>
<fileset dir="${examples}" includes="**/*.class"/>
</delete>
<delete dir="${package}"/>
<mkdir dir="${package}${file.separator}bin"/>
<copy todir="${package}${file.separator}bin">
<fileset dir="bin"/>
</copy>
<mkdir dir="${package}/lib"/>
<mkdir dir="${package}/runlib"/>
<mkdir dir="${package}/examples"/>
<mkdir dir="${package}/documents"/>
<copy file="build/lib/NetRexxC.jar" todir="${package}/lib"/>
<copy file="build/lib/NetRexxF.jar" todir="${package}/lib"/>
<copy file="build/lib/NetRexxR.jar" todir="${package}/runlib"/>
<copy todir="${package}/lib">
<fileset dir="ant" includes="ecj*.jar"/>
<fileset dir="ant" includes="jline*.jar"/>
<fileset dir="ant" includes="jansi*.jar"/>
</copy>
<copy todir="${package}/documents">
<fileset dir="documentation/ug" includes="*.pdf"/>
<fileset dir="documentation/pg" includes="*.pdf"/>
<fileset dir="documentation/nrl" includes="*.pdf" excludes="nrl3.02.pdf" />
<fileset dir="documentation/njpipes" includes="*.pdf" excludes="stages*.pdf" />
<fileset dir="documentation/njpipes" includes="Pipeline*Stages.html"/>
</copy>
<copy file="releasenotes.md" todir="${package}"/>
<!-- <copy file="documentation/ug/readme.txt" todir="${package}"/> -->
<copy file="documentation/ug/read.me.first" todir="${package}"/>
<copy file="LICENSE" todir="${package}"/>
<mkdir dir="${package}/tools"/>
<mkdir dir="${package}/tools/emacs"/>
<mkdir dir="${package}/tools/ant-task"/>
<mkdir dir="${package}/tools/vim"/>
<mkdir dir="${package}/tools/nano"/>
<mkdir dir="${package}/tools/micro"/>
<mkdir dir="${package}/tools/java2nrx"/>
<copy file="lib/ant-netrexx.jar" todir="${package}/tools/ant-task"/>
<copy file="tools/emacs-mode/netrexx-mode.el"
todir="${package}/tools/emacs"/>
<copy file="tools/vim/netrexx-vim.zip"
todir="${package}/tools/vim"/>
<copy todir="${package}/tools/nano">
<fileset dir="tools/nano" includes="*.*"/>
</copy>
<copy todir="${package}/tools/micro">
<fileset dir="tools/micro" includes="*.*"/>
</copy>
<copy todir="${package}/tools/java2nrx">
<fileset dir="tools/java2nrx" includes="*.*"/>
</copy>
<copy todir="${package}/examples">
<fileset dir="${examples}" />
</copy>
<zip destfile="NetRexx-${PACKAGE_NAME}.zip" compress="true">
<!-- everything except bin -->
<zipfileset dir="${package}" excludes="bin/**"/>
<!-- bin scripts should be executable on Unix -->
<zipfileset dir="${package}" includes="bin/**" filemode="755" dirmode="755"/>
</zip>
<!-- <jar jarfile="NetRexx-${PACKAGE_NAME}.zip" compress="yes" filesonly="true"> -->
<!-- <fileset dir="${package}"/> -->
<!-- <manifest> -->
<!-- <attribute name="Implementation-Vendor" value="Rexx Language Association"/> -->
<!-- <attribute name="Implementation-Title" value="NetRexx"/> -->
<!-- <attribute name="Implementation-Version" value="${ant.project.name} ${version} ${mod}, ${build.id.string}"/> -->
<!-- <attribute name="Implementation-Build" value="${build.id.string}"/> -->
<!-- </manifest> -->
<!-- </jar> -->
</target>
<target name="clean.javadocs" description="delete built javadocs">
<delete dir="${DOCPATH}"/>
</target>
<target name="init" description="Set build number and document version level">
<tstamp/>
<propertyfile file="build.number" comment="Build Number for ANT. Do not edit!">
<entry key="build.number" type="int" default="0" operation="+" value="1" />
</propertyfile>
<loadproperties srcFile="${sources}${file.separator}${compilerDir}${file.separator}NrVersion.nrx">
<filterchain>
<linecontains>
<contains value="version ="/>
</linecontains>
</filterchain>
</loadproperties>
<loadproperties srcFile="${sources}${file.separator}${compilerDir}${file.separator}NrVersion.nrx">
<filterchain>
<linecontains>
<contains value="mod ="/>
</linecontains>
</filterchain>
</loadproperties>
<property file="build.number"/>
<property name="build.id.string"
value="build ${build.number}-${DSTAMP}-${TSTAMP}"/>
<echo level="info" message="Starting build for ${build.id.string}"/>
</target>
<target name="showprops" depends="prepare" description="Displays default property settings">
<echoproperties />
<!-- get the source compile classpath in a printable form -->
<pathconvert pathsep="${line.separator}| |-- "
property="echo.path.compile"
refid="build.class.path">
</pathconvert>
<echo message="| |"/>
<echo message="|-- compile classpath"/>
<echo message="| |"/>
<echo message="| |-- ${echo.path.compile}"/>
<pathconvert pathsep="${line.separator}| |-- "
property="echo.path.test"
refid="test.class.path">
</pathconvert>
<echo message="| |"/>
<echo message="|-- test classpath"/>
<echo message="| |"/>
<echo message="| |-- ${echo.path.test}"/>
</target>
</project>