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
|
<!-- -*- Mode: SGML; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- -->
<!-- ========================================================================= -->
<!-- Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC), -->
<!-- 2003-2005 Contributors -->
<!-- All rights reserved. -->
<!-- This program and the accompanying materials are made available -->
<!-- under the terms of the Common Public License v1.0 -->
<!-- which accompanies this distribution and is available at -->
<!-- http://www.eclipse.org/legal/cpl-v10.html -->
<!-- -->
<!-- Contributors: (See CVS checkin's) -->
<!-- Xerox/PARC initial implementation -->
<!-- Adrian Colyer / George Harley eclipse plugin targets -->
<!-- ========================================================================= -->
<project name="build" default="all" basedir=".">
<target name="all" depends="aspectj"/> <!-- used to also depend on "eclipse.plugins"/-->
<target name="rebuild" depends="clean,all"/>
<target name="clean" depends="clean-directories"/>
<!-- these rely on mapping ant.project.name to module.name -->
<target name="compile" depends="build-module"/>
<target name="compile-tests" depends="init">
<antcall target="any-module-all">
<param name="trim.testing.default" value="false"/>
</antcall>
</target>
<target name="test" depends="compile-tests">
<antcall target="run-module-junit-tests"/>
</target>
<!-- ===================================================================== -->
<!-- Init -->
<!-- ===================================================================== -->
<!-- use this file to force prop values -->
<property name="modules.dir" location="${basedir}/.."/>
<property name="module.name" value="${ant.project.name}"/>
<import file="${modules.dir}/build/build-properties.xml"/>
<target name="init" depends="init-properties,init-directories">
<property name="build.config" value=""/>
<property name="trim.testing.default" value="true"/>
<property name="aj.installer.jar"
location="${aj.dist.dir}/aspectj-${build.version.short}.jar"/>
<available property="ant.lib.aspectjtools"
file="${ant.home}/lib/aspectjtools.jar"
value="Expect classpath errors from ${ant.home}/lib/aspectjtools.jar"/>
<available property="ant.lib.aspectjrt"
file="${ant.home}/lib/aspectjrt.jar"
value="Expect classpath errors from ${ant.home}/lib/aspectjrt.jar"/>
<available property="testing.drivers.all.available"
file="${aj.jar.dir}/testing-drivers-all.jar"
value="${aj.jar.dir}/testing-drivers-all.jar"/>
</target>
<target name="version-uptodate" depends="init,init-taskdefs"
unless="version-uptodate.done">
<!-- XXX change task to pre-check & avoid scan if dates uptodate -->
<versionuptodate
version="${build.version}"
versionSourceFile="${aspectj.modules.dir}/bridge/src/org/aspectj/bridge/Version.java"
versionTagFile="${aj.temp.dir}/versionUptodate"/>
<available file="${aj.temp.dir}/versionUptodate"
property="version.uptodate"/>
<property name="version-uptodate.done" value="done"/>
</target>
<target name="init-version" depends="init,init-filters,version-uptodate" >
<antcall target="init-filters"/>
<copy file="${aspectj.modules.dir}/build/lib/BridgeVersion.java.txt"
tofile="${aspectj.modules.dir}/bridge/src/org/aspectj/bridge/Version.java"
overwrite="yes" filtering="yes"/>
<property name="init.version.done" value="done"/>
<!-- consider checking this in? -->
</target>
<!-- ===================================================================== -->
<!-- Misc setup and warnings -->
<!-- ===================================================================== -->
<target name="warn.ant.lib.aspectjrt" if="ant.lib.aspectjrt">
<echo message="----- WARNING: ${ant.lib.aspectjrt}" />
</target>
<target name="warn.ant.lib.aspectjtools" if="ant.lib.aspectjtools">
<echo message="----- WARNING: ${ant.lib.aspectjtools}" />
</target>
<target name="fail-unless-boot-libraries-uptodate" depends="init"
description="fail unless all boot libraries are up-to-date">
<antcall target="verify-boot-lib">
<param name="boot.lib" value="test/aspectjrt.jar"/>
<param name="vbl.module.name" value="runtime"/>
</antcall>
<antcall target="verify-boot-lib">
<param name="boot.lib" value="build/build.jar"/>
<param name="vbl.module.name" value="build"/>
</antcall>
<antcall target="verify-boot-lib">
<param name="boot.lib" value="test/testing-client.jar"/>
<param name="vbl.module.name" value="testing-client"/>
</antcall>
<echo message="fyi, bridge/util changes rarely mean client is invalid"/>
<antcall target="verify-boot-lib">
<param name="boot.lib" value="test/testing-client.jar"/>
<param name="vbl.module.name" value="util"/>
</antcall>
<antcall target="verify-boot-lib">
<param name="boot.lib" value="test/testing-client.jar"/>
<param name="vbl.module.name" value="bridge"/>
</antcall>
<echo message="all boot libraries verified"/>
</target>
<target name="update-tree" depends="init"
description="update tree">
<fail unless="CVSROOT"
message="required: {ant} -DCVSROOT=... ..."/>
<cvs cvsRoot="${CVSROOT}"
dest="${aspectj.modules.dir}"
quiet="on"
failonerror="on"
command="update -dP" />
</target>
<!-- ===================================================================== -->
<!-- test targets -->
<!-- ===================================================================== -->
<target name="quicklook" >
<antcall target="clean"/>
<!-- todo: compile modules without test sources -->
<!-- todo: junit tests (compile with test sources) -->
<antcall target="aspectj"/>
<antcall target="ajcTests"/>
<!-- todo: product install and tests -->
</target>
<!-- ===================================================================== -->
<!-- antcall targets -->
<!-- ===================================================================== -->
<target name="build-product" depends="init,init-taskdefs,init-version"
description="build $${product.name}">
<ajbuild jarDir="${aj.jar.dir}"
baseDir="${aspectj.modules.dir}"
distDir="${aj.dist.dir}"
productDir="${aspectj.modules.dir}/build/products/${product.name}"
trimTesting="${trim.testing.default}"
buildConfig="${build.config}"
version="${build.version.long}"
verbose="${build.verbose}"
failonerror="true"/>
</target>
<target name="build-module" depends="init,init-taskdefs,init-version">
<ajbuild jarDir="${aj.jar.dir}"
baseDir="${aspectj.modules.dir}"
distDir="${aj.dist.dir}"
module="${module.name}"
trimTesting="${trim.testing.default}"
buildConfig="${build.config}"
version="${build.version.long}"
verbose="${build.verbose}"
failonerror="true"/>
</target>
<target name="build-module-all" depends="init,init-taskdefs,init-version">
<ajbuild module="${module.name}"
baseDir="${aspectj.modules.dir}"
distDir="${aj.dist.dir}"
jarDir="${aj.jar.dir}"
trimTesting="${trim.testing.default}"
buildConfig="${build.config}"
version="${build.version.long}"
verbose="${build.verbose}"
assembleall="true"
failonerror="true"/>
</target>
<target name="create-installer" depends="init,init-taskdefs,init-filters"
description="create ${installer.file} from ${staging.dir} using ${htmlSrc.dir} and ${simpleClassName}">
<!-- init-filters: filter on copy used by ajinstaller taskdef -->
<delete quiet="on" file="${installer.file}"/>
<ajinstaller zipfile="${installer.file}"
installerclassjar="${aspectj.build.jar}"
basedir="${staging.dir}"
mainclass="$$installer$$.org.aspectj.${simpleClassName}"
htmlSrc="${htmlSrc.dir}"
resourcesSrc="${aspectj.modules.build.dir}/installer-resources"/>
</target>
<target name="verify-boot-lib" depends="init"
description="fail if ${boot.lib} is out of date wrt ${vbl.module.name}">
<uptodate property="lib-warning-${vbl.module.name}"
targetfile="${aspectj.modules.dir}/lib/${boot.lib}">
<srcfiles dir="${aspectj.modules.dir}/${vbl.module.name}/src"
includes="**/*.java"/>
</uptodate>
<fail unless="lib-warning-${vbl.module.name}"
message="${boot.lib} out of date wrt module ${vbl.module.name}"/>
</target>
<!-- ===================================================================== -->
<!-- custom targets -->
<!-- ===================================================================== -->
<!--
deprecated, but desireable...
<target name="junit-tests-allinone"
depends="init"
description="deprecated - kills JUnit by using run-all-junit-tests ">
<property name="alltests.module"
value="run-all-junit-tests"/>
<clean-dir dir="${aj.junit.dir}"/>
<antcall target="build-module-all">
<param name="module.name" value="${alltests.module}"/>
<param name="trim.testing.default" value="false"/>
</antcall>
<junit fork="on"
includeAntRuntime="off"
dir="${aspectj.modules.build.dir}"
printsummary="yes"
haltonfailure="${haltOnTestFailure}" >
<classpath>
<pathelement location="${java.home}/lib/tools.jar"/>
<pathelement location="${aj.jar.dir}/${alltests.module}-all.jar"/>
<pathelement location="${aspectj.modules.lib.dir}/junit/junit.jar"/>
<fileset dir="${aspectj.modules.lib.dir}/ant/lib"
includes="ant.jar,ant-junit.jar,xml-apis.jar,xercesImpl.jar"/>
</classpath>
<jvmarg value="-Daspectjrt.path=${aspectjrt.path}" />
<jvmarg value="-Xmx400m" />
<formatter type="xml"/>
<test name="AllModuleTests" todir="${aj.junit.dir}"/>
</junit>
</target>
-->
<target name="junit-tests"
depends="init"
description="build and run JUnit leaf tests ${junit.includes}">
<property name="alltests.module"
value="run-all-junit-tests"/>
<clean-dir dir="${aj.junit.dir}"/>
<antcall target="build-module-all">
<param name="module.name" value="${alltests.module}"/>
<param name="trim.testing.default" value="false"/>
</antcall>
<junit fork="on"
includeAntRuntime="off"
dir="${aspectj.modules.build.dir}"
printsummary="yes"
haltonfailure="${haltOnTestFailure}" >
<classpath>
<pathelement location="${aj.jar.dir}/${alltests.module}-all.jar"/>
<!-- see skipped libraries in Builder.properties -->
<pathelement location="${java.home}/lib/tools.jar"/>
<pathelement location="${aspectj.modules.lib.dir}/junit/junit.jar"/>
<fileset dir="${aspectj.modules.lib.dir}/ant/lib"
includes="ant.jar,ant-junit.jar,xml-apis.jar,xercesImpl.jar"/>
</classpath>
<jvmarg value="-Daspectjrt.path=${aspectjrt.path}" />
<jvmarg value="-Xmx400m" />
<formatter type="xml"/>
<batchtest todir="${aj.junit.dir}">
<fileset dir="${aspectj.modules.dir}/ajde/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/ajdoc/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/asm/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/bridge/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/build/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/loadtime/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/org.aspectj.ajdt.core/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/runtime/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/taskdefs/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/testing/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/testing-client/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/testing-drivers/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/tests/src" includes="**/*Tests.java" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/util/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
<fileset dir="${aspectj.modules.dir}/weaver/testsrc" includes="${junit.includes}" excludes="${junit.excludes}"/>
</batchtest>
</junit>
<antcall target="if.junitreport"/>
</target>
<target name="if.junitreport" depends="init"
if="junitreport.available"
description="silently skip if no libraries available">
<antcall target="junitreport"/>
</target>
<target name="junitreport" depends="init,init-taskdefs">
<fail unless="junitreport.available"
message="junitreport needs lib/ant/lib/xalan.jar"/>
<clean-dir dir="${aj.junit.dir}/html"/>
<junitreport todir="${aj.junit.dir}/html">
<fileset dir="${aj.junit.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${aj.junit.dir}/html"/>
</junitreport>
</target>
<target name="build-testing-drivers" depends="init-taskdefs,init"
unless="testing.drivers.all.available">
<antcall target="any-module-all">
<param name="module.name" value="testing-drivers"/>
</antcall>
</target>
<target name="build-testing-jars"
depends="aspectjrt,build,ajbrowser-all"
description="build testing jars.
Use -Dtrim.testing.default=false to build junit tests">
<antcall target="any-module">
<param name="module.name" value="testing"/>
</antcall>
<antcall target="any-module">
<param name="module.name" value="testing-drivers"/>
</antcall>
<antcall target="build-testing-drivers"/>
</target>
<target name="build-testing-client" depends="init-taskdefs,init">
<antcall target="build-module-all">
<param name="module.name" value="testing-client"/>
</antcall>
<echo>
To use testing client jar in tests,
mv ../aj-build/jars/testing-client-all.jar ../lib/tests/testing-client.jar
</echo>
</target>
<target name="run-module-junit-tests" depends="init-taskdefs"
description="run all junit tests for a module">
<mkdir dir="${aj.junit.dir}/${module.name}"/>
<!-- fork to load classes, include AntRuntime to get taskdef classes junit.jar -->
<junit
fork="true"
dir="../${module.name}"
printsummary="yes"
haltonfailure="${haltOnTestFailure}">
<classpath>
<pathelement location="${aj.build.dir}/jars/${module.name}-all.jar"/>
<!-- libraries clipped from -all jars (though junit in parent) -->
<pathelement location="${aspectjrt.path}"/>
<pathelement location="${junit.jar}"/>
</classpath>
<!-- aspectjrt.path used by ajde tests -->
<sysproperty key="aspectjrt.path" value="${aspectjrt.path}"/>
<formatter type="xml"/>
<batchtest
todir="${aj.junit.dir}/${module.name}">
<fileset dir="${modules.dir}/${module.name}/testsrc">
<include name="*ModuleTests.java" />
</fileset>
</batchtest>
</junit>
</target>
<!-- remove as unused - see release/build.xml test-sources -->
<target name="ajcTests" depends="init,build-testing-drivers">
<java fork="true" jar="${aj.jar.dir}/testing-drivers-all.jar"
dir="${aspectj.modules.tests.dir}"
output="${aj.results.dir}/ajcTests.out.txt">
<arg value="-traceTestsMin"/>
<arg value="-logFail"/>
<arg value="-hideStreams"/>
<arg value="-loud"/>
<arg value="-ajctestSkipKeywords=purejava,knownLimitations"/>
<arg value="ajcTests.xml"/>
</java>
<echo message="find result in ${aj.results.dir}/ajcTests.out.txt"/>
</target>
<target name="aspectj" depends="init,aspectjtools-dist,docs-dist"
description="create installer from local distributions">
<property name="installer.staging.dir"
location="${aj.temp.dir}/installer-staging"/>
<mkdir dir="${installer.staging.dir}"/>
<delete dir="${installer.staging.dir}"/>
<mkdir dir="${installer.staging.dir}"/>
<copy todir="${installer.staging.dir}">
<fileset dir="${aj.dist.dir}/tools"/>
<fileset dir="${aj.dist.dir}/docs"/>
</copy>
<antcall target="create-installer">
<param name="installer.file"
location="${aj.installer.jar}"/>
<param name="staging.dir"
location="${installer.staging.dir}"/>
<param name="htmlSrc.dir"
location="${aspectj.modules.build.dir}/products/aspectj/install"/>
<param name="simpleClassName" value="ToolsInstaller"/>
</antcall>
<delete dir="${installer.staging.dir}"/>
</target>
<target name="docs-dist" depends="init">
<ant dir="${aspectj.modules.dir}/docs"
antfile="build.xml"
target="local-dist"
inheritAll="false"/>
</target>
<target name="aspectjrt" depends="init"
description="build aspectjrt.jar (differently than release)">
<antcall target="build-module-all">
<param name="module.name" value="runtime"/>
</antcall>
<copy file="${aj.jar.dir}/runtime.jar"
tofile="${aj.jar.dir}/aspectjrt.jar"/>
</target>
<!-- ===================================================================== -->
<!-- boilerplate antcalls -->
<!-- ===================================================================== -->
<!-- for any-[module|product], define [module|product].name -->
<target name="any-module" depends="init">
<fail unless="module.name" message="use -Dmodule.name=... to define"/>
<antcall target="build-module">
<param name="module.name" value="${module.name}"/>
</antcall>
</target>
<target name="any-module-all" depends="init">
<fail unless="module.name" message="use -Dmodule.name=... to define"/>
<antcall target="build-module-all">
<param name="module.name" value="${module.name}"/>
</antcall>
</target>
<target name="any-product" depends="init">
<fail unless="product.name" message="use -Dproduct.name=... to define"/>
<antcall target="build-product">
<param name="product.name" value="${product.name}"/>
</antcall>
</target>
<!-- literal targets -->
<target name="eajc" depends="init">
<antcall target="build-module-all">
<param name="module.name" value="org.aspectj.ajdt.core"/>
</antcall>
<echo message="use org.aspectj.ajdt.core-all.jar for eajc.jar"/>
</target>
<target name="ajbrowser-all" >
<antcall target="build-module-all">
<param name="module.name" value="ajbrowser"/>
</antcall>
</target>
<target name="ajdoc-all">
<antcall target="build-module-all">
<param name="module.name" value="ajdoc"/>
</antcall>
</target>
<target name="build">
<antcall target="build-module">
<param name="module.name" value="build"/>
</antcall>
</target>
<target name="aspectjtools-dist" depends="init"
description="build local distribution">
<antcall target="build-product">
<param name="product.name" value="tools"/>
</antcall>
</target>
<!-- ===================================================================== -->
<!-- eclipse plugins -->
<!-- ===================================================================== -->
<target name="eclipse.plugins" depends="org.aspectj.ajde.source,
org.aspectj.ajde.doc,
org.aspectj.ajde,
org.aspectj.aspectjrt"
description="create the Eclipse distribution plugins"/>
<target name="org.aspectj.ajde.source" depends="init"
description="build the AspectJ source distribution plugin">
<copy todir="${aj.plugin.org.aspectj.ajde.source.dir}">
<fileset dir="${aspectj.modules.dir}/eclipse.plugin/org.aspectj.ajde.source"/>
</copy>
<replace file="${aj.plugin.org.aspectj.ajde.source.dir}/plugin.xml"
token="build.version.eclipse.plugins"
value="${build.version.eclipse.plugins}"/>
<copy file="${aspectj.modules.dir}/org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip"
todir="${aj.plugin.org.aspectj.ajde.source.dir}/src"/>
<zip destfile="${aj.plugin.org.aspectj.ajde.source.dir}/src/aspectjsrc.zip">
<fileset dir="${aspectj.modules.dir}/ajbrowser/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/ajdoc/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/ajde/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/asm/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/bridge/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/org.aspectj.ajdt.core/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/runtime/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/taskdefs/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/util/src" includes="**"/>
<fileset dir="${aspectj.modules.dir}/weaver/src" includes="**"/>
</zip>
<jar destfile="${aj.plugin.org.aspectj.ajde.source.dir}/../org.aspectj.ajde.source_${build.version.eclipse.plugins}.jar">
<fileset dir="${aj.plugin.org.aspectj.ajde.source.dir}" includes="**"/>
</jar>
</target>
<target name="org.aspectj.ajde.doc" depends="init,docs-dist"
description="build the AspectJ documentation plugin for Eclipse">
<copy todir="${aj.plugin.org.aspectj.ajde.doc.dir}">
<fileset dir="${aspectj.modules.dir}/eclipse.plugin/org.aspectj.ajde.doc"/>
</copy>
<copy todir="${aj.plugin.org.aspectj.ajde.doc.dir}/doc">
<fileset dir="${aj.dist.dir}/docs/doc" includes="**"/>
</copy>
<replace file="${aj.plugin.org.aspectj.ajde.doc.dir}/plugin.xml"
token="build.version.eclipse.plugins"
value="${build.version.eclipse.plugins}"/>
<jar destfile="${aj.plugin.org.aspectj.ajde.doc.dir}/../org.aspectj.ajde.doc_${build.version.eclipse.plugins}.jar">
<fileset dir="${aj.plugin.org.aspectj.ajde.doc.dir}" includes="**"/>
</jar>
</target>
<target name="org.aspectj.ajde" depends="init,aspectj"
description="build the AspectJ library plugin for Eclipse">
<copy todir="${aj.plugin.org.aspectj.ajde.dir}">
<fileset dir="${aspectj.modules.dir}/eclipse.plugin/org.aspectj.ajde"/>
</copy>
<replace file="${aj.plugin.org.aspectj.ajde.dir}/plugin.xml"
token="build.version.eclipse.plugins"
value="${build.version.eclipse.plugins}"/>
<copy file="${aj.dist.dir}/tools/lib/aspectjrt.jar"
todir="${aj.plugin.org.aspectj.ajde.dir}"/>
<copy file="${aj.dist.dir}/tools/lib/aspectjtools.jar"
todir="${aj.plugin.org.aspectj.ajde.dir}"/>
<jar destfile="${aj.plugin.org.aspectj.ajde.dir}/ajde.jar">
<zipfileset src="${aj.dist.dir}/tools/lib/aspectjtools.jar"
includes="org/aspectj/**"/>
</jar>
<jar destfile="${aj.plugin.org.aspectj.ajde.dir}/../org.aspectj.ajde_${build.version.eclipse.plugins}.jar">
<fileset dir="${aj.plugin.org.aspectj.ajde.dir}" includes="**"/>
</jar>
</target>
<target name="org.aspectj.aspectjrt" depends="init,aspectj"
description="build the AspectJ runtime library plugin for Eclipse">
<copy todir="${aj.plugin.org.aspectj.aspectjrt.dir}">
<fileset dir="${aspectj.modules.dir}/eclipse.plugin/org.aspectj.aspectjrt"/>
</copy>
<replace file="${aj.plugin.org.aspectj.aspectjrt.dir}/plugin.xml"
token="build.version.eclipse.plugins"
value="${build.version.eclipse.plugins}"/>
<copy file="${aj.dist.dir}/tools/lib/aspectjrt.jar"
todir="${aj.plugin.org.aspectj.aspectjrt.dir}"/>
<jar destfile="${aj.plugin.org.aspectj.aspectjrt.dir}/../org.aspectj.aspectjrt_${build.version.eclipse.plugins}.jar">
<fileset dir="${aj.plugin.org.aspectj.aspectjrt.dir}" includes="**"/>
</jar>
</target>
</project>
|