forked from flyingsaucerproject/flyingsaucer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildn.xml
647 lines (534 loc) · 19.9 KB
/
buildn.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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<project name="Flying Saucer Build File" default="help" basedir=".">
<description>Checkout, build, test, and package the Flying Saucer project.</description>
<!-- =====================================================
init and prefab settings
===================================================== -->
<import file="./etc/build/properties.xml"/>
<import file="./etc/build/preset-defs.xml"/>
<import file="./etc/build/clean.xml"/>
<import file="./etc/build/compile.xml"/>
<import file="./etc/build/docs.xml"/>
<import file="./etc/build/jars.xml"/>
<import file="./etc/build/tests.xml"/>
<import file="./etc/build/dist.xml"/>
<import file="./etc/build/upload.xml"/>
<import file="./etc/build/demo-apps.xml"/>
<import file="./etc/build/netbeans.xml"/>
<target name="help">
<echo message=" ant settings: show all Ant properties to be used"/>
<echo message=" ant clean: clean up any compilation or distribution files made"/>
<echo message=" ant compile: compile the source"/>
<echo message=" ant browser: build run the browser"/>
<echo message=" ant test: build run the test app"/>
<echo message=" ant about: build run the about box demo"/>
<echo message="lib directory ${libraries.dir}"/>
</target>
<!-- General initialization, including properties. -->
<target name="init" depends="properties">
<mkdir dir="${dest.dir}"/>
<mkdir dir="${dest.java.dir}"/>
<mkdir dir="${dest.resources.css.dir}"/>
<mkdir dir="${dest.resources.conf.dir}"/>
<!--<mkdir dir="${dest.resources.elements.dir}"/>
<mkdir dir="${dest.resources.entities.dir}"/>
<mkdir dir="${dest.resources.notations.dir}"/>
<mkdir dir="${dest.resources.dtd.dir}"/>
-->
</target>
<!-- =====================================================
Compile, Jar, and Clean
===================================================== -->
<!-- Deletes all files from destination directory tree. -->
<target name="clean" description="Cleans all build files." depends="properties">
<delete dir="${dest.dir}"/>
<delete>
<fileset dir="${basedir}">
<include name="**/*~"/>
</fileset>
</delete>
</target>
<!-- Compiles application and copies resources to destination directory. -->
<target name="compile" description="Compile core classes." depends="init,resources.core">
<javac-full>
<include name="org/xhtmlrenderer/**"/>
</javac-full>
</target>
<!-- Builds core, browser and about box jars. -->
<target name="jar" description="Builds all jars">
<antcall target="jar.core"/>
<antcall target="jar.browser"/>
<antcall target="jar.about"/>
</target>
<!-- =====================================================
Build the various distributions
===================================================== -->
<target name="dist" description="Builds all distribution files.">
<antcall target="dist.jnlp"/>
<antcall target="dist.src"/>
<antcall target="dist.binary"/>
</target>
<!-- Builds a ZIP file of entire project from base directory. -->
<target name="zip" description="Builds ZIP file of entire project." depends="jar">
<zip basedir="${basedir}" zipfile="../flyingsaucer.zip"/>
</target>
<!-- =================================================
Documentation
================================================= -->
<target name="docs" description="Creates JavaDocs" depends="clean.java2html, clean.javadoc">
<!-- <taskdef name="java2html"
classname="de.java2html.anttasks.Java2HtmlTask"
classpath="lib/java2html.jar"
/>
<java2html
srcdir="${src.java.dir}"
destdir="${dest.java2html.dir}"
includes="**/*.java"
style="eclipse"
showLineNumbers="true"
showFileName="true"
showTableBorder="true"
/> -->
<antcall target="_javadoc">
<param name="antcall.dest.javadoc.dir" value="${dest.javadoc.full.dir}"/>
<param name="antcall.javadoc.file" value=""/>
</antcall>
<antcall target="_javadoc">
<param name="antcall.dest.javadoc.dir" value="${dest.javadoc.user.dir}"/>
<param name="antcall.javadoc.file" value="src/java/org/xhtmlrenderer/simple/XHTMLPanel.java"/>
<reference refid="user-java-files" torefid="org-java-files"/>
</antcall>
<copy todir="${dest.dir}/docs" file="${dest.javadoc.full.dir}/index.html"/>
</target>
<!-- =================================================
Helpers
================================================= -->
<!-- copies core resources to destination directory. -->
<target name="resources.core"
description="Copies core resource files (css/dtds) to build directory"
depends="init">
<copy todir="${dest.resources.css.dir}">
<fileset dir="${src.resources.css.dir}">
<include name="*.css"/>
</fileset>
</copy>
<copy todir="${dest.resources.conf.dir}" file="${src.resources.conf.dir}/xhtmlrenderer.conf"/>
<copy todir="${dest.resources.schema.dir}">
<fileset dir="${src.resources.schema.dir}">
<include name="**"/>
</fileset>
</copy>
<!--<copy todir="${dest.resources.elements.dir}">
<fileset dir="${src.resources.elements.dir}">
<include name="*.mod"/>
</fileset>
</copy>
<copy todir="${dest.resources.entities.dir}">
<fileset dir="${src.resources.entities.dir}">
<include name="*.ent"/>
<include name="*.mod"/>
</fileset>
</copy>
<copy todir="${dest.resources.dtd.dir}">
<fileset dir="${src.resources.dtd.dir}">
<include name="*.dtd"/>
</fileset>
</copy>
<copy todir="${dest.resources.notations.dir}">
<fileset dir="${src.resources.notations.dir}">
<include name="*.mod"/>
</fileset>
</copy> -->
</target>
<!-- Copies the resources needed to run the browser into the build tree -->
<target name="resources.browser" depends="compile">
<mkdir dir="build/classes/demos"/>
<copy todir="build/classes/demos">
<fileset dir="demos/browser/xhtml">
<include name="*.xhtml"/>
<include name="*.css"/>
<include name="*.gif"/>
<include name="*.png"/>
<include name="alice/**"/>
</fileset>
<fileset dir="demos">
<include name="splash/**"/>
</fileset>
</copy>
<copy todir="build/classes/images">
<fileset dir="demos/browser/src/icons/images">
<include name="*.gif"/>
<include name="*.png"/>
</fileset>
</copy>
<copy todir="build/classes/demos/fonts">
<fileset dir="demos/browser/xhtml/fonts">
<include name="*.ttf"/>
</fileset>
</copy>
</target>
<!-- =======================================
General
======================================= -->
<target name="settings" depends="properties">
<echo message="******************************************"/>
<echo message="App Settings"/>
<echo message="******************************************"/>
<echo message=""/>
<echo message="app.name ${app.name}"/>
<echo message=""/>
<echo message=""/>
<echo message="******************************************"/>
<echo message="Directory Settings"/>
<echo message="******************************************"/>
<echo message=""/>
<echo message="basedir ${basedir}"/>
<echo message="libraries.dir ${libraries.dir}"/>
<echo message="src.dir ${src.dir}"/>
<echo message="doc.dir ${doc.dir}"/>
<echo message="dest.dir ${dest.dir}"/>
<echo message="src.java.dir ${src.java.dir}"/>
<echo message="dest.javadoc.full.dir ${dest.javadoc.full.dir}"/>
<echo message="dest.javadoc.user.dir ${dest.javadoc.user.dir}"/>
<echo message="dest.java2html.dir ${dest.java2html.dir}"/>
<echo message="dest.java.dir ${dest.java.dir}"/>
<echo message="src.about.java.dir ${src.about.java.dir}"/>
<echo message="src.browser.java.dir ${src.browser.java.dir}"/>
<echo message="src.resources.css.dir ${src.resources.css.dir}"/>
<echo message="dest.resources.css.dir ${dest.resources.css.dir}"/>
<echo message="src.resources.conf.dir ${src.resources.conf.dir}"/>
<echo message="dest.resources.conf.dir ${dest.resources.conf.dir}"/>
<!--<echo message="src.resources.entities.dir ${src.resources.entities.dir}"/>
<echo message="dest.resources.entities.dir ${dest.resources.entities.dir}"/>
<echo message="src.resources.notations.dir ${src.resources.notations.dir}"/>
<echo message="dest.resources.notations.dir ${dest.resources.notations.dir}"/>
<echo message="src.resources.elements.dir ${src.resources.elements.dir}"/>
<echo message="dest.resources.elements.dir ${dest.resources.elements.dir}"/>
<echo message="src.resources.dtd.dir ${src.resources.dtd.dir}"/>
<echo message="dest.resources.dtd.dir ${dest.resources.dtd.dir}"/>
-->
<echo message="src.packaging.dir ${src.packaging.dir}"/>
<echo message="src.demo.xhtml.dir ${src.demo.xhtml.dir}"/>
<echo message="src.demo.splash.dir ${src.demo.splash.dir}"/>
<echo message="src.about.xhtml.dir ${src.about.xhtml.dir}"/>
<echo message=""/>
<echo message=""/>
<echo message="******************************************"/>
<echo message="Compiler Settings"/>
<echo message="******************************************"/>
<echo message=""/>
<echo message="build.compiler ${build.compiler}"/>
<echo message="compiler.debug ${compiler.debug}"/>
<echo message="compiler.deprecation ${compiler.deprecation}"/>
<echo message="compiler.failonerror ${compiler.failonerror}"/>
<echo message="compiler.fork ${compiler.fork}"/>
<echo message="compiler.listfiles ${compiler.listfiles}"/>
<echo message="compiler.nowarn ${compiler.nowarn}"/>
<echo message="compiler.optimize ${compiler.optimize}"/>
<echo message="compiler.source ${compiler.source}"/>
<echo message="compiler.target ${compiler.target}"/>
<echo message="compiler.verbose ${compiler.verbose}"/>
<echo message=""/>
<echo message=""/>
<echo message="******************************************"/>
<echo message="Java Executable Settings"/>
<echo message="******************************************"/>
<echo message=""/>
<echo message="java-exec.fork.tests ${java-exec.fork.tests}"/>
<echo message=""/>
<!--
<echo message=""/>
<echo message="******************************************"/>
<echo message="Other Settings"/>
<echo message="******************************************"/>
<echo message=""/>
-->
</target>
</project>
<!-- ========== this is the CVS log. Don't delete! ========== -->
<!--
$Id$
$Log$
Revision 1.6 2009/04/17 16:23:03 pdoubleya
update demos page to include all demos, update ant dist and upload to have separate demos/jnlp targets.
Revision 1.5 2005/11/03 22:35:03 tobega
Fix from Eric Neuhauser
Revision 1.4 2005/06/26 15:48:11 tobega
Converted to almost standard html4 default css, which shook out a bug: position should not inherit
Revision 1.3 2005/06/25 15:33:44 tobega
fixed Directory listings in browser
Revision 1.2 2005/06/13 06:50:18 tobega
Fixed a bug in table content resolution.
Various "tweaks" in other stuff.
Revision 1.1 2005/03/26 12:04:14 pdoubleya
Added to CVS.
Revision 1.88 2005/03/24 23:11:09 pdoubleya
Removed nbprofile call in simple test (used for profiling in NB).
Revision 1.87 2005/03/23 17:24:56 pdoubleya
Added elements/entities for XHTML resources.
Revision 1.86 2005/02/05 17:22:24 pdoubleya
added resources for entities and dtds to copys commands.
Revision 1.85 2005/01/29 12:20:06 pdoubleya
Exclude /prototype src directory from build.
Revision 1.84 2005/01/29 10:07:27 pdoubleya
Added task to sync nb_profile directory, and for running the SimplePageTest class.
Revision 1.83 2005/01/24 14:58:05 pdoubleya
Modified public-api test settings.
Revision 1.82 2005/01/13 00:47:48 tobega
Added preparation of values for a form submission
Revision 1.81 2004/12/14 01:50:13 tobega
Why is there always one more bug ;-) Now line-breaking should be cast-iron (I hope)
Revision 1.80 2004/12/12 16:11:04 tobega
Fixed bug concerning order of inline content. Added a demo for pseudo-elements.
Revision 1.79 2004/12/09 18:03:10 joshy
added game screen to browser
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.78 2004/12/01 13:59:40 joshy
added new demos
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.77 2004/11/30 21:24:39 joshy
turned off diffs again
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.76 2004/11/30 21:23:18 joshy
updated the unit tests
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.75 2004/11/30 00:37:20 joshy
modified docs
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.74 2004/11/27 15:46:37 joshy
lots of cleanup to make the code clearer
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.73 2004/11/16 15:19:29 pdoubleya
Exclude abstract FSCssTestCase from junit test suite.
Revision 1.72 2004/11/16 14:37:48 pdoubleya
Added support for JUnit tests.
Renamed test- targets to test. to be like other names.
Revision 1.71 2004/11/15 13:41:02 pdoubleya
Renamed javadoc target to _javadoc, as it is meant for internal use; use 'docs' target to generate javadocs for the project.
Revision 1.70 2004/11/12 20:43:29 joshy
added demo of custom font
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.69 2004/11/12 18:51:00 joshy
fixed repainting issue for background-attachment: fixed
added static util methods and get minimum size to graphics 2d renderer
added test for graphics 2d renderer
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.68 2004/11/11 15:27:12 joshy
added encoding
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.67 2004/11/11 15:25:32 joshy
changed the encoding
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.66 2004/11/07 23:24:18 joshy
added menu item to generate diffs
added diffs for multi-colored borders and inline borders
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.65 2004/11/07 16:23:16 joshy
added support for lighten and darken to bordercolor
added support for different colored sides
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.64 2004/11/07 13:39:16 joshy
fixed missing borders on the table
changed td and th to display:table-cell
updated isBlockLayout() code to fix double border problem with tables
-j
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.63 2004/11/06 22:49:51 joshy
cleaned up alice
initial support for inline borders and backgrounds
moved all of inlinepainter back into inlinerenderer, where it belongs.
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.62 2004/11/06 01:50:40 joshy
support for line-height
cleaned up the alice demo
added unit tests for font family selection and line-height
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.61 2004/11/05 18:48:41 joshy
added alice demo to the browser
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.60 2004/11/05 18:45:14 joshy
support for floated blocks (not just inline blocks)
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.59 2004/11/05 16:39:34 joshy
more float support
added border bug test
-j
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.58 2004/11/04 15:35:44 joshy
initial float support
includes right and left float
cannot have more than one float per line per side
floats do not extend beyond enclosing block
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.57 2004/11/03 23:54:32 joshy
added hamlet and tables to the browser
more support for absolute layout
added absolute layout unit tests
removed more dead code and moved code into layout factory
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.56 2004/11/03 15:17:03 joshy
added intial support for absolute positioning
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.55 2004/11/02 20:44:54 joshy
put in some prep work for float support
removed some dead debugging code
moved isBlock code to LayoutFactory
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.54 2004/10/31 21:30:43 tobega
is now sane without building jars
Revision 1.53 2004/10/28 02:13:38 joshy
finished moving the painting code into the renderers
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.52 2004/10/28 01:34:22 joshy
moved more painting code into the renderers
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.51 2004/10/26 00:13:13 joshy
added threaded layout support to the HTMLPanel
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.50 2004/10/22 14:07:10 joshy
added homepage link
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.49 2004/10/22 13:48:05 joshy
added missing files and a quick change to fix upload support for docs
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.48 2004/10/19 18:11:07 pdoubleya
Synchronized with test build file. CLASSPATH and other paths are now externalized in set references (fileset, patternset). Docs now uses build file javadoc target to run javadoc routine.
Revision 1.47 2004/10/19 15:00:51 joshy
updated the build file
removed some extraneous files
update the home page to point to the new jnlp files
updated the resource loader to use the marker class
updated the text of the about box
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.46 2004/10/19 14:17:30 joshy
merged the build2.xml into the build.xml
added docs and docs upload targets
updated the classpath for the jnlps
added jar files
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.45 2004/10/18 23:43:02 joshy
final updates today
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.44 2004/10/18 22:54:50 joshy
added r4 distribution
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.43 2004/10/18 15:29:29 joshy
split the layout into two classes
made layout be an interface instead of a class.
moved the layout code into default layout.
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.42 2004/10/18 15:00:42 joshy
added comments and correct logging to the layout factory
made layout factory use a hashtable instead of conditionals.
made layout factory reuse layout object instances
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.41 2004/10/18 14:19:34 joshy
removed build file reference to the logging properties file
Issue number:
Obtained from:
Submitted by:
Reviewed by:
Revision 1.40 2004/10/18 10:08:19 pdoubleya
Moved default property settings into build file itself. Now looks for build.properties as override, and a local properties file in userhome/.flyingsaucer/flyingsaucer.build.properties.
Revision 1.39 2004/10/13 22:55:36 pdoubleya
Added system property to auto-load configuration for logging system.
-->