-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
719 lines (537 loc) · 21.7 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
<?xml version="1.0"?>
<!--
Build file for the Spring Framework.
$Id: build.xml,v 1.46 2004/03/24 22:06:15 jhoeller Exp $
This script requires a "lib" directory containing the necessary third party JAR files.
See project.properties for the definitions of the properties used in this file.
Building Spring requires J2SE 1.4; the "dist" JARs are built with Sun's JDK 1.4.2.
Note: To successfully run the tests, you need to use Xerces or any other JAXP parser
that properly supports XML includes. A simple way to achieve this is to put
xml-apis.jar and xercesImpl.jar into your "JAVA_HOME/jre/lib/ext" directory.
-->
<project name="spring-core" default="usage" basedir=".">
<property file="build.properties"/>
<property file="project.properties"/>
<path id="all-libs">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="attribute-compiler-classpath">
<fileset dir="lib/jakarta-commons">
<include name="commons-attributes-compiler-SNAPSHOT.jar"/>
<include name="commons-collections.jar"/>
</fileset>
<fileset dir="lib/xdoclet">
<include name="xjavadoc-1.0.jar"/>
</fileset>
</path>
<target name="usage">
<echo message=""/>
<echo message="${name} build file"/>
<echo message="------------------------------------------------------"/>
<echo message=""/>
<echo message="Among the available targets are:"/>
<echo message=""/>
<echo message="build --> build all; don't create JARs"/>
<echo message="alljars --> create all JAR files"/>
<echo message="tests --> run tests"/>
<echo message=""/>
</target>
<target name="clean" description="Clean all output dirs (dist, javadocs, classes, test-classes, etc.)">
<delete dir="${dist.dir}"/>
<delete dir="${javadocs.dir}"/>
<delete dir="${target.classes.dir}"/>
<delete dir="${target.clover.dir}"/>
<delete dir="${target.junit.reports.dir}"/>
<delete dir="${target.junit.summary.dir}"/>
<delete dir="${target.loadclasses.dir}"/>
<delete dir="${target.otherclasses.dir}"/>
<delete dir="${target.release.dir}"/>
<delete dir="${target.testclasses.dir}"/>
<!-- just kill target dir (it's safer). No need at this point to keep it -->
<delete dir="${target.dir}"/>
</target>
<!--
Use Jakarta Commons Attributes to compile the attributes for the main source tree.
-->
<target name="compileattr">
<!-- Bring in Jakarta Commons attribute compilation -->
<taskdef resource="org/apache/commons/attributes/anttasks.properties">
<classpath refid="attribute-compiler-classpath"/>
</taskdef>
<!-- Compile to a temp directory: Commons Attributes will place Java Source here. -->
<attribute-compiler destdir="${commons.attributes.tempdir.src}">
<!--
Only the PathMap attribute in the org.springframework.web.servlet.handler.metadata
package currently needs to be shipped with an attribute, to support indexing.
-->
<fileset dir="${src.dir}" includes="**/metadata/*.java"/>
</attribute-compiler>
</target>
<!--
Compile the main source tree.
This task depends on the Commons Attributes compile step,
as some classes must ship with attributes.
-->
<target name="build" depends="compileattr"
description="Compile main source tree java files into class files (no-jarring)">
<mkdir dir="${target.classes.dir}"/>
<mkdir dir="${target.classes.dir}/META-INF"/>
<javac destdir="${target.classes.dir}" target="1.3" debug="${debug}"
deprecation="false" optimize="false" failonerror="true">
<src path="${src.dir}"/>
<!-- Include Commons Attributes generated Java sources -->
<src path="${commons.attributes.tempdir.src}"/>
<classpath refid="all-libs"/>
</javac>
<rmic base="${target.classes.dir}" classname="org.springframework.remoting.rmi.RmiInvocationWrapper"/>
<copy todir="${target.classes.dir}" preservelastmodified="true">
<fileset dir="${src.dir}">
<include name="**/*.xml"/>
<include name="**/*.dtd"/>
</fileset>
</copy>
<copy todir="${target.classes.dir}/META-INF" preservelastmodified="true">
<fileset dir="${src.dir}/org/springframework/web/servlet/tags">
<include name="*.tld"/>
</fileset>
</copy>
</target>
<target name="initdist" description="Initialize the distribution directory">
<mkdir dir="${dist.dir}"/>
</target>
<target name="modulejars" depends="build,initdist" description="Create module-specific JAR files">
<delete>
<fileset dir="${dist.dir}">
<include name="spring-*.jar"/>
</fileset>
</delete>
<jar jarfile="${dist.dir}/spring-core.jar">
<fileset dir="${target.classes.dir}">
<include name="org/springframework/beans/**"/>
<include name="org/springframework/core/**"/>
<include name="org/springframework/util/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
<jar jarfile="${dist.dir}/spring-aop.jar">
<fileset dir="${target.classes.dir}">
<include name="org/springframework/aop/**"/>
<include name="org/springframework/metadata/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
<jar jarfile="${dist.dir}/spring-context.jar">
<fileset dir="${target.classes.dir}">
<include name="org/springframework/context/**"/>
<include name="org/springframework/ejb/**"/>
<include name="org/springframework/jndi/**"/>
<include name="org/springframework/mail/**"/>
<include name="org/springframework/remoting/**"/>
<include name="org/springframework/scheduling/**"/>
<include name="org/springframework/ui/**"/>
<include name="org/springframework/validation/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
<jar jarfile="${dist.dir}/spring-dao.jar">
<fileset dir="${target.classes.dir}">
<include name="org/springframework/dao/**"/>
<include name="org/springframework/jdbc/**"/>
<include name="org/springframework/transaction/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
<jar jarfile="${dist.dir}/spring-orm.jar">
<fileset dir="${target.classes.dir}">
<include name="org/springframework/orm/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
<jar jarfile="${dist.dir}/spring-web.jar">
<fileset dir="${target.classes.dir}">
<include name="org/springframework/web/bind/**"/>
<include name="org/springframework/web/context/**"/>
<include name="org/springframework/web/filter/**"/>
<include name="org/springframework/web/multipart/**"/>
<include name="org/springframework/web/util/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
<jar jarfile="${dist.dir}/spring-webmvc.jar">
<fileset dir="${target.classes.dir}">
<include name="org/springframework/web/servlet/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
</target>
<target name="fulljar" depends="build,initdist" description="Create full JAR file with all Spring classes">
<delete file="${dist.dir}/spring.jar"/>
<jar jarfile="${dist.dir}/spring.jar">
<fileset dir="${target.classes.dir}">
<include name="META-INF/**"/>
<include name="org/springframework/**"/>
</fileset>
<manifest>
<attribute name="Spring-Version" value="${spring-version}"/>
</manifest>
</jar>
</target>
<target name="srczip" depends="initdist" description="Create source ZIP (containing all Java sources)">
<delete file="${dist.dir}/spring-src.zip"/>
<zip zipfile="${dist.dir}/spring-src.zip">
<fileset dir="${src.dir}">
<include name="org/springframework/**"/>
</fileset>
</zip>
<copy file="${src.dir}/org/springframework/beans/factory/xml/spring-beans.dtd"
todir="${dist.dir}" preservelastmodified="true"/>
<copy file="${src.dir}/org/springframework/web/servlet/tags/spring.tld"
todir="${dist.dir}" preservelastmodified="true"/>
</target>
<target name="alljars" depends="modulejars,fulljar,srczip" description="Create all JAR files"/>
<target name="javadoc" description="Generate framework Javadocs.">
<mkdir dir="${javadocs.dir}"/>
<javadoc sourcepath="src" destdir="${javadocs.dir}" windowtitle="Spring Framework"
defaultexcludes="yes" author="true" version="true" use="true">
<doctitle><![CDATA[<h1>Spring Framework</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright (C) 2003-2004 The Spring Framework Project.</i>]]></bottom>
<classpath refid="all-libs"/>
<packageset dir="${src.dir}">
<include name="org/springframework/**"/>
</packageset>
</javadoc>
</target>
<target name="release" depends="alljars,javadoc" description="Generate release zip file">
<mkdir dir="${target.release.dir}"/>
<delete file="${target.release.dir}/${release.zip}"/>
<delete file="${target.release.dir}/${release-with-dependencies.zip}"/>
<fileset id="main" dir=".">
<include name="dist/*.jar"/>
<include name="dist/*.dtd"/>
<include name="dist/*.tld"/>
<include name="docs/**"/>
<exclude name="docs/reference/**"/>
<include name="samples/countries/**"/>
<include name="samples/imagedb/**"/>
<include name="samples/jpetstore/**"/>
<include name="samples/petclinic/**"/>
<include name="samples/tiles-example/**"/>
<include name="samples/webapp-minimal/**"/>
<include name="samples/webapp-typical/**"/>
<include name="src/**"/>
<include name="test/**"/>
<include name="*.bat"/>
<include name="*.txt"/>
<include name="*.xml"/>
<include name="*.properties"/>
</fileset>
<zip zipfile="${target.release.dir}/${release.zip}">
<zipfileset refid="main" prefix="${release.path}"/>
</zip>
<zip zipfile="${target.release.dir}/${release-with-dependencies.zip}">
<zipfileset refid="main" prefix="${release.path}"/>
<zipfileset dir="." prefix="${release.path}">
<include name="lib/*.txt"/>
<include name="lib/ant/**"/>
<include name="lib/axis/**"/>
<include name="lib/aopalliance/**"/>
<include name="lib/caucho/**"/>
<include name="lib/cglib/**"/>
<include name="lib/cos/**"/>
<include name="lib/dom4j/**"/>
<include name="lib/easymock/**"/>
<include name="lib/freemarker/**"/>
<include name="lib/hibernate/**"/>
<include name="lib/hsqldb/**"/>
<include name="lib/ibatis/**"/>
<include name="lib/itext/**"/>
<include name="lib/jakarta-commons/**"/>
<include name="lib/jakarta-taglibs/**"/>
<include name="lib/j2ee/**"/>
<include name="lib/jboss/**"/>
<include name="lib/jdo/**"/>
<include name="lib/jdom/**"/>
<include name="lib/jotm/**"/>
<include name="lib/junit/**"/>
<include name="lib/log4j/**"/>
<include name="lib/mockobjects/**"/>
<include name="lib/poi/**"/>
<include name="lib/quartz/**"/>
<include name="lib/regexp/**"/>
<include name="lib/struts/**"/>
<include name="lib/velocity/**"/>
<include name="lib/xdoclet/**"/>
</zipfileset>
</zip>
</target>
<target name="compiletestattr" depends="build">
<taskdef resource="org/apache/commons/attributes/anttasks.properties">
<classpath refid="attribute-compiler-classpath"/>
</taskdef>
<!-- Compile to a temp directory: Commons Attributes will place Java Source here. -->
<attribute-compiler destdir="${commons.attributes.tempdir.test}">
<fileset dir="${test.dir}" includes="**/autoproxy/metadata/*.java"/>
</attribute-compiler>
</target>
<!--
This task depends on the Commons Attributes compile step,
as some tests require source-level attribute support.
-->
<target name="buildtests" depends="compiletestattr"
description="Compile test source tree Java files into class files">
<mkdir dir="${target.testclasses.dir}"/>
<javac destdir="${target.testclasses.dir}" target="1.3" debug="${debug}"
deprecation="false" optimize="false" failonerror="true">
<src path="${test.dir}"/>
<!-- Include Commons Attributes generated Java sources -->
<src path="${commons.attributes.tempdir.test}"/>
<classpath refid="all-libs"/>
<classpath location="${target.classes.dir}"/>
</javac>
<!-- Pick up logging config from test directory -->
<copy todir="${target.testclasses.dir}" preservelastmodified="true">
<fileset dir="${test.dir}">
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<!--
Run test suite. This and Clover test target take their includes and excludes
from build.properties. However it's possible to run specific tests by passing in
the test.includes and (optionally) test.excludes properties through the command line, as below:
ant tests -Dtest.includes=org/springframework/jdbc/**/*Test*
-->
<target name="tests" depends="buildtests" description="Run tests">
<property name="reports.dir" value="${target.junit.reports.dir}"/>
<mkdir dir="${reports.dir}"/>
<junit printsummary="yes" haltonfailure="yes" haltonerror="yes">
<!-- Must go first to ensure any jndi.properties files etc take precedence -->
<classpath location="${target.testclasses.dir}"/>
<classpath location="${target.classes.dir}"/>
<!-- Need files loaded as resources -->
<classpath location="${test.dir}"/>
<classpath refid="all-libs"/>
<formatter type="plain" usefile="false"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${reports.dir}">
<fileset dir="${target.testclasses.dir}" includes="${test.includes}" excludes="${test.excludes}"/>
</batchtest>
</junit>
</target>
<!--
Run test suite and generate test summary.
Does not halt on failure or error, in contrast to the "tests" target above.
-->
<target name="testsummary" depends="buildtests" description="Run tests and generate test summary">
<property name="reports.dir" value="${target.junit.reports.dir}"/>
<property name="summary.dir" value="${target.junit.summary.dir}"/>
<mkdir dir="${reports.dir}"/>
<mkdir dir="${summary.dir}"/>
<junit printsummary="yes" haltonfailure="no" haltonerror="no">
<!-- Must go first to ensure any jndi.properties files etc take precedence -->
<classpath location="${target.testclasses.dir}"/>
<classpath location="${target.classes.dir}"/>
<!-- Need files loaded as resources -->
<classpath location="${test.dir}"/>
<classpath refid="all-libs"/>
<formatter type="plain" usefile="false"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${reports.dir}">
<fileset dir="${target.testclasses.dir}" includes="${test.includes}" excludes="${test.excludes}"/>
</batchtest>
</junit>
<junitreport todir="${reports.dir}">
<fileset dir="${reports.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report todir="${summary.dir}"/>
</junitreport>
</target>
<target name="clover.build" description="Compile main source tree java files WITH CLOVER into class files">
<!-- switch on Clover by specifying it as the compiler to use -->
<property name="build.compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
<mkdir dir="${target.clover.dir}"/>
<javac destdir="${target.clover.dir}" target="1.3" debug="${debug}"
deprecation="false" optimize="false" failonerror="true">
<src path="${src.dir}"/>
<classpath refid="all-libs"/>
</javac>
<copy todir="${target.clover.dir}" preservelastmodified="true">
<fileset dir="${src.dir}">
<include name="**/*.xml"/>
<include name="**/*.dtd"/>
</fileset>
</copy>
</target>
<target name="clover.tests" depends="buildtests,clover.build" description="Run Clover tests">
<junit printsummary="yes" haltonfailure="yes">
<!-- Must go first to ensure the jndi.properties takes precedence -->
<classpath location="${target.testclasses.dir}"/>
<classpath location="${target.clover.dir}"/>
<!-- Need files loaded as resources -->
<classpath location="${test.dir}"/>
<classpath refid="all-libs"/>
<batchtest fork="yes">
<fileset dir="${target.testclasses.dir}" includes="${test.includes}" excludes="${test.excludes}"/>
</batchtest>
</junit>
</target>
<!--
Run test suite under Clover coverage analysis, and bring up
Clover's Swing browser to display the results.
-->
<target name="clover.swing" depends="clover.tests" description="Run Clover tests and bring up Swing coverage viewer">
<echo>Launching coverage viewer</echo>
<java classname="com.cortexeb.tools.clover.reporters.jfc.Viewer" fork="yes">
<arg value="${clover.initstring}"/>
<classpath refid="all-libs"/>
</java>
</target>
<!--
Run test suite under Clover coverage analysis, and use Clover
to generate Javadoc/style HTML results that may be browsed later.
-->
<target name="clover.html" depends="clover.tests" description="Generate Clover HTML coverage reports from an existing Clover database">
<java classname="com.cortexeb.tools.clover.reporters.html.HtmlReporter" fork="yes">
<arg line="-o '${target.clover.html.dir}' -i '${clover.initstring}' -t 'Spring Framework'"/>
<classpath refid="all-libs"/>
</java>
</target>
<target name="loadjar" depends="initdist, buildtests" description="Build load test jar">
<mkdir dir="${target.loadclasses.dir}"/>
<javac destdir="${target.loadclasses.dir}" target="1.3" debug="${debug}"
deprecation="false" optimize="false" failonerror="false">
<src path="load"/>
<classpath refid="all-libs"/>
<!-- For load -->
<classpath location="${target.classes.dir}"/>
<classpath location="${target.testclasses.dir}"/>
</javac>
<copy todir="${target.loadclasses.dir}" preservelastmodified="true">
<fileset dir="load">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
</copy>
<jar jarfile="${dist.dir}/${spring-load.jar}">
<fileset dir="${target.loadclasses.dir}">
<include name="org/springframework/load/**" />
</fileset>
</jar>
</target>
<target name="docclean" description="Delete temporary and distribution directories for docs">
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/pdf"/>
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/html_single"/>
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/html"/>
</target>
<target name="preparedocs" description="Extra preparation for the documentation">
<!-- For now, no dynamic inclusion of the DTD since it looks ugly because of
all the extra newlines the replace is mysteriously adding.
I'll figure something out for that later on
<delete file="${basedir}/${doc.ref.dir}/src/dtd.xml"/>
<loadfile
property="doc.beansdtd"
srcFile="${src.dir}/org/springframework/beans/factory/xml/spring-beans.dtd"/>
<copy
file="${basedir}/${doc.ref.dir}/src/dtd-template.xml"
tofile="${basedir}/${doc.ref.dir}/src/dtd.xml"/>
<replace
file="${basedir}/${doc.ref.dir}/src/dtd.xml"
token="@dtd-include@"
value="${doc.beansdtd}">
</replace>
<replace
file="${basedir}/${doc.ref.dir}/src/dtd.xml"
token="\\n"
value=""/>
-->
</target>
<target name="docpdf" depends="preparedocs" description="Compile reference documentation to pdf">
<mkdir dir="${basedir}/${dist.ref.dir}/pdf/images"/>
<copy todir="${basedir}/${dist.ref.dir}/pdf/images">
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
</fileset>
</copy>
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.dir}">
<classpath>
<fileset dir="${basedir}/${doc.ref.dir}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="-o"/>
<arg value="${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp"/>
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
<arg value="${basedir}/${doc.ref.dir}/styles/fopdf.xsl"/>
</java>
<java classname="org.apache.fop.apps.Fop" fork="true" dir="${doc.ref.dir}">
<classpath>
<fileset dir="${basedir}/${doc.ref.dir}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp"/>
<arg value="${basedir}/${dist.ref.dir}/pdf/spring-reference.pdf"/>
</java>
<delete file="${dist.ref.dir}/pdf/docbook_fop.tmp"/>
</target>
<target name="dochtml" depends="preparedocs" description="Compile reference documentation to chunked html">
<mkdir dir="${dist.ref.dir}/html/images"/>
<copy todir="${basedir}/${dist.ref.dir}/html/images">
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
</fileset>
</copy>
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${dist.ref.dir}/html/">
<classpath>
<fileset dir="${basedir}/${doc.ref.dir}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
<arg value="${basedir}/${doc.ref.dir}/styles/html_chunk.xsl"/>
</java>
</target>
<target name="dochtmlsingle" description="Compile reference documentation to single html">
<mkdir dir="${dist.ref.dir}/html_single/images"/>
<copy todir="${basedir}/${dist.ref.dir}/html_single/images">
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
</fileset>
</copy>
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.dir}">
<classpath>
<fileset dir="${basedir}/${doc.dir}/reference/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="-o"/>
<arg value="${basedir}/${dist.ref.dir}/html_single/index.html"/>
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
<arg value="${basedir}/${doc.ref.dir}/styles/html.xsl"/>
</java>
</target>
<target name="refdoc" depends="dochtml,dochtmlsingle,docpdf" description="Generate and copy reference documentation"/>
</project>