-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
735 lines (636 loc) · 24.2 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
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
<?xml version="1.0"?>
<project name="isgci">
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="/usr/share/ant-contrib/lib/ant-contrib.jar"/>
</classpath>
</taskdef>
<!-- Input and output files/dirs -->
<property name="xsl.dir" location="scripts"/>
<property name="build.dir" location="build"/>
<property name="build.classes.dir" location="${build.dir}/classes"/>
<property name="persistent.dir" location="persistent"/>
<property name="distrib.dir" location="${build.dir}/distrib"/>
<property name="distrib.tar" location="${build.dir}/isgci.tar.gz"/>
<property name="data.dir" location="data"/>
<property name="data.webstatic.dir" location="${data.dir}/web"/>
<property name="build.data.dir" location="${build.dir}/data"/>
<property name="smallgraphs.xml.in" location="${data.dir}/smallgraphs.xml"/>
<property name="smallgraphs.xml.out" location="${build.data.dir}/smallgraphs.xml"/>
<property name="smallgraphs.sage.txt.rel" value="smallgraphs.txt"/>
<property name="smallgraphs.sage.txt.out" location="${build.data.dir}/${smallgraphs.sage.txt.rel}"/>
<property name="isgci.xml.in" location="${data.dir}/masterdata.xml"/>
<property name="isgci.xml.out" location="${build.data.dir}/isgci.xml"/>
<property name="isgci.full.xml.out" location="${build.data.dir}/full.xml"/>
<property name="isgci.sage.xml.rel" value="isgci_sage.xml"/>
<property name="isgci.sage.xml.out" location="${build.data.dir}/${isgci.sage.xml.rel}"/>
<property name="generate.trace" location="${build.data.dir}/generate.trace"/>
<property name="relations.trace" location="${build.data.dir}/relations.trace"/>
<property name="autocache.txt" location="${persistent.dir}/autocache.txt"/>
<property name="names.txt" location="${build.data.dir}/names.txt"/>
<property name="iq.dir" value="teo/isgci/appl/iq"/>
<property name="iq.pkg" value="teo.isgci.appl.iq"/>
<!--
- web.dir is the path to where we write the files.
- home.url is the full url to ISGCI on the web.
- root.url is the absolute url on the webserver to ISGCI root.
- Examples:
- web.dir = "build/web" (always)
- home.url = "http://www.isgci.org", root.url = ""
- home.url = "localhost/build", root.url = "/build"
-->
<!-- Must NOT end in / for @HOMEURL@ replacement! -->
<property name="web.dir" location="${build.dir}/web"/>
<!-- Full URL to the ISGCI homepage -->
<!-- Must NOT end in / for @HOMEURL@ replacement! -->
<property name="home.url" value="http://www.graphclasses.org"/>
<!-- Absolute path on the webserver to the homedirectory, must NOT end in / -->
<property name="root.url" value=""/>
<!-- These two are relative to web.dir and to root.url -->
<property name="web.classes.rel" value="classes"/>
<property name="web.images.rel" value="images"/>
<property name="web.maps.rel" value="maps"/>
<property name="web.maps.dir" location="${web.dir}/${web.maps.rel}"/>
<property name="web.classes.dir" location="${web.dir}/${web.classes.rel}"/>
<property name="web.keys.dir" location="${web.dir}/Keys"/>
<property name="web.images.dir" location="${web.dir}/${web.images.rel}"/>
<property name="smallgraphs.html.out" location="${web.dir}/smallgraphs.html"/>
<property name="smallgraphs.url" value="${home.url}/smallgraphs.html"/>
<property name="graphlinks.xml.out" location="${build.data.dir}/graphlinks.xml"/>
<property name="search.cgi.in" location="${data.dir}/searchhead.cgi"/>
<property name="search.cgi.data" location="${build.data.dir}/searchtail.cgi"/>
<property name="search.cgi.out" location="${web.dir}/search.cgi"/>
<property name="refs.xml.in" location="${data.dir}/refs.xml"/>
<property name="isgci.jar" location="${web.dir}/ISGCI.jar"/>
<!-- classpaths -->
<property name="jarlib.dir" location="/home/ux/Isgci/lib"/>
<property name="jgrapht.jar" location="${jarlib.dir}/jgrapht.jar"/>
<path id="compile.classpath">
<pathelement location="${jarlib.dir}/getopt.jar"/>
<pathelement location="${jarlib.dir}/mouse.jar"/>
<pathelement location="${jgrapht.jar}"/>
</path>
<path id="run.classpath">
<path refid="compile.classpath"/>
<pathelement location="${jarlib.dir}/saxon.jar"/>
<pathelement location="${build.classes.dir}"/>
</path>
<!-- Targets -->
<target name="init"
description="Initialize the build environment">
<mkdir dir="${build.classes.dir}"/>
<mkdir dir="${build.data.dir}"/>
</target>
<target name="init.web"
depends="init"
description="Installs basic web files">
<mkdir dir="${web.dir}"/>
<mkdir dir="${web.classes.dir}"/>
<mkdir dir="${web.keys.dir}"/>
<mkdir dir="${web.images.dir}"/>
<mkdir dir="${web.maps.dir}"/>
<exec executable="rm">
<arg value="-f"/>
<arg value="${web.classes.dir}/images"/>
</exec>
<exec executable="ln">
<arg value="-s"/>
<arg value="../images"/>
<arg value="${web.classes.dir}/images"/>
</exec>
</target>
<target name="clean.compile"
description="Deletes all created class/jar files">
<delete dir="${build.classes.dir}"/>
<mkdir dir="${build.classes.dir}"/>
<delete file="${build.dir}/compile.timestamp"/>
</target>
<target name="clean.web"
description="Deletes the web files">
<delete dir="${web.dir}"/>
<delete file="${build.dir}/smallgraphs.html.timestamp"/>
<delete file="${build.dir}/classes.html.timestamp"/>
</target>
<target name="clean.all"
description="Deletes all created files">
<delete dir="${build.dir}"/>
</target>
<target name="iqparser"
description="Compile the iq parser">
<java classname="mouse.Generate" fork="true" classpathref="run.classpath">
<arg value="-G"/> <arg value="${iq.dir}/iq.peg"/>
<arg value="-D"/> <arg value="${iq.dir}"/>
<arg value="-P"/> <arg value="IQParser"/>
<arg value="-S"/> <arg value="IQSemantics"/>
<arg value="-p"/> <arg value="${iq.pkg}"/>
<arg value="-T"/>
</java>
</target>
<target name="iqparser.full"
description="Compile the iq parser, if outofdate">
<outofdate>
<sourcefiles>
<pathelement path="${iq.dir}/iq.peg"/>
</sourcefiles>
<targetfiles>
<pathelement path="${iq.dir}/IQParser.java"/>
</targetfiles>
<sequential>
<antcall target="iqparser"/>
</sequential>
</outofdate>
</target>
<target name="compile"
description="Compile the java classes"
depends="iqparser.full">
<javac srcdir="."
destdir="${build.classes.dir}"
includeantruntime="false"
debug="yes">
<classpath refid="compile.classpath"/>
<!-- <compilerarg value="-Xlint:unchecked"/> -->
<include name="**/*.java"/>
<exclude name="IQ.java"/>
<exclude name="Parsetree.java"/>
<exclude name="XsltUtil.java"/>
<exclude name="Yylex.java"/>
<exclude name="parser.java"/>
<exclude name="sym.java"/>
</javac>
<outofdate>
<sourcefiles>
<fileset dir="${build.classes.dir}" includes="**/*.class"/>
</sourcefiles>
<targetfiles path="${build.dir}/compile.timestamp"/>
<sequential>
<touch file="${build.dir}/compile.timestamp"/>
</sequential>
</outofdate>
</target>
<target name="jar"
description="Create a jar file containing the ISGCI application">
<delete file="${isgci.jar}"/>
<jar destfile="${isgci.jar}"
index="false"> <!-- otherwise Class-Path doesn't work -->
<manifest>
<attribute name="Main-Class" value="teo.isgci.gui.Loader"/>
<attribute name="Class-Path" value="jgrapht.jar"/>
</manifest>
<fileset dir="${build.classes.dir}">
<include name="teo/**"/>
<exclude name="teo/isgci/appl/FindISG.class"/>
<exclude name="teo/isgci/appl/TestForbidden.class"/>
<exclude name="teo/isgci/appl/XsltUtil*.class"/>
<exclude name="teo/isgci/appl/deducer/**"/>
<exclude name="teo/isgci/appl/iq/**"/>
<exclude name="teo/isgci/smallgraph/Permutation*.class"/>
<exclude name="teo/isgci/xml/SmallGraphWriter.class"/>
<exclude name="teo/isgci/xml/ISGCIWriter*.class"/>
</fileset>
<fileset dir="${build.dir}">
<include name="data/isgci.xml"/>
<include name="data/isgci.dtd"/>
<include name="data/smallgraphs.xml"/>
<include name="data/smallgraphs.dtd"/>
</fileset>
<fileset dir=".">
<include name="data/psprolog.txt"/>
</fileset>
<fileset dir="${data.dir}">
<include name="images/*.gif"/>
</fileset>
</jar>
<signjar alias="isgci"
jar="${isgci.jar}"
keystore="${data.dir}/keystore"
storepass="graphclasses.org"/>
<signjar alias="isgci"
jar="${jgrapht.jar}"
signedjar="${web.dir}/jgrapht.jar"
keystore="${data.dir}/keystore"
storepass="graphclasses.org"/>
</target>
<target name="jar.full"
depends="compile, deductions.full"
description="jar, with full dependency handling">
<outofdate>
<sourcefiles>
<pathelement path="${build.dir}/compile.timestamp"/>
<pathelement path="${isgci.xml.out}"/>
<pathelement path="${data.dir}/psprolog.txt"/>
<pathelement path="${data.dir}/keystore"/>
</sourcefiles>
<targetfiles>
<pathelement path="${isgci.jar}"/>
</targetfiles>
<sequential>
<antcall target="jar"/>
</sequential>
</outofdate>
</target>
<target name="smallgraphs"
description="Deduce smallgraph relations">
<java classname="teo.isgci.appl.FindISG" fork="true"
classpathref="run.classpath">
<arg file="${smallgraphs.xml.in}"/>
<arg file="${smallgraphs.xml.out}"/>
</java>
<copy todir="${build.data.dir}">
<fileset dir="${data.dir}" includes="smallgraphs.dtd"/>
</copy>
</target>
<target name="smallgraphs.full"
depends="compile"
description="smallgraphs, with full dependency handling">
<outofdate>
<sourcefiles>
<pathelement path="${smallgraphs.xml.in}"/>
</sourcefiles>
<targetfiles>
<pathelement path="${smallgraphs.xml.out}"/>
</targetfiles>
<sequential>
<antcall target="smallgraphs"/>
</sequential>
</outofdate>
</target>
<target name="smallgraphs.touch"
description="touches the smallgraphs output files">
<touch file="${smallgraphs.xml.out}"/>
</target>
<target name="deductions"
description="Deduce graphclass relations">
<java classname="teo.isgci.appl.deducer.Generate" fork="true"
maxmemory="3500M"
classpathref="run.classpath">
<!-- <jvmarg value="-agentlib:hprof=cpu=samples,depth=8,interval=100"/> -->
<!-- <arg value="-C"/> -->
<!-- <arg value="-x"/> -->
<arg value="-a"/><arg file="${autocache.txt}"/>
<arg value="-l"/><arg file="${generate.trace}"/>
<arg value="-r"/><arg file="${relations.trace}"/>
<arg value="-s"/><arg file="${isgci.sage.xml.out}"/>
<arg file="${isgci.xml.in}"/>
<arg file="${smallgraphs.xml.out}"/>
<arg file="${isgci.full.xml.out}"/>
<arg file="${isgci.xml.out}"/>
<arg file="${names.txt}"/>
</java>
<copy todir="${build.data.dir}">
<fileset dir="${data.dir}" includes="isgci.dtd"/>
</copy>
<exec executable="bash">
<arg value="-c"/>
<arg value="echo Auto classes not present anymore:;
diff --old-line-format='%L' --new-line-format='' --unchanged-line-format='' <(sort ${autocache.txt}) <(sort ${names.txt});
true"/> <!-- true to prevent ant result message -->
</exec>
</target>
<target name="deductions.full"
depends="smallgraphs.full, compile"
description="deductions, with full dependency handling">
<outofdate>
<sourcefiles>
<pathelement path="${smallgraphs.xml.out}"/>
<pathelement path="${isgci.xml.in}"/>
</sourcefiles>
<targetfiles>
<pathelement path="${isgci.xml.out}"/>
<pathelement path="${isgci.full.xml.out}"/>
</targetfiles>
<sequential>
<antcall target="deductions"/>
</sequential>
</outofdate>
</target>
<target name="deductions.touch"
description="touches the deductions output files">
<touch file="${isgci.xml.out}"/>
<touch file="${isgci.full.xml.out}"/>
</target>
<target name="maps"
description="Create maps for every class">
<java jar="${isgci.jar}" fork="true">
<arg value="file://${web.dir}/"/>
<sysproperty key="org.isgci.mappath" value="${web.maps.dir}"/>
</java>
</target>
<target name="maps.full"
depends="compile, init.web, deductions.full, jar.full"
description="maps, with full dependency handling">
<antcall target="maps"/>
</target>
<target name="smallgraphs.html"
description="Create smallgraphs html and gif files">
<delete>
<fileset dir="${web.images.dir}" includes="g_*"/>
<fileset file="${graphlinks.xml.out}"/>
</delete>
<xslt style="${xsl.dir}/graphlinks.xsl"
in="${smallgraphs.xml.in}"
out="${graphlinks.xml.out}"
force="true">
<classpath refid="run.classpath"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<param name="homeurl" expression="${home.url}"/>
<param name="homedir" expression="${web.dir}"/>
<param name="rooturl" expression="${root.url}"/>
<param name="imagedir" expression="${web.images.rel}"/>
<param name="graphlinks" expression="${graphlinks.xml.out}"/>
</xslt>
<xslt style="${xsl.dir}/smallgraphs.xsl"
in="${smallgraphs.xml.in}"
out="/dev/null"
force="true">
<classpath refid="run.classpath"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<param name="homeurl" expression="${home.url}"/>
<param name="homedir" expression="${web.dir}"/>
<param name="rooturl" expression="${root.url}"/>
<param name="imagedir" expression="${web.images.rel}"/>
<param name="sagefile" expression="${smallgraphs.sage.txt.out}"/>
<param name="graphlinks" expression="${graphlinks.xml.out}"/>
</xslt>
<touch file="${build.dir}/smallgraphs.html.timestamp"/>
</target>
<target name="smallgraphs.html.full"
depends="compile, init.web, smallgraphs.full"
description="smallgraphs.html, with full dependency handling">
<outofdate>
<sourcefiles>
<pathelement path="${build.dir}/compile.timestamp"/>
<pathelement path="${smallgraphs.xml.in}"/>
</sourcefiles>
<targetfiles>
<pathelement path="${graphlinks.xml.out}"/>
<pathelement path="${smallgraphs.html.out}"/>
</targetfiles>
<sequential>
<exec executable="ant">
<arg value="smallgraphs.html"/>
</exec>
</sequential>
</outofdate>
</target>
<target name="classes.html"
description="Create classes html and gif files">
<delete>
<fileset dir="${web.classes.dir}" includes="*.html"/>
<fileset dir="${web.keys.dir}" includes="*"/>
</delete>
<xslt style="${xsl.dir}/isgci.xsl"
in="${isgci.full.xml.out}"
out="${build.data.dir}/isgci.xsl.out"
force="true">
<classpath refid="run.classpath"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<param name="homeurl" expression="${home.url}"/>
<param name="homedir" expression="${web.dir}"/>
<param name="rooturl" expression="${root.url}"/>
<param name="classesdir" expression="${web.classes.rel}"/>
<param name="mapsdir" expression="${web.maps.rel}"/>
<param name="statsfile" expression="${build.data.dir}/status.inc"/>
<param name="classeshrefsfile" expression="${search.cgi.data}"/>
<param name="graphlinks" expression="${graphlinks.xml.out}"/>
<param name="refsinput" expression="${refs.xml.in}"/>
</xslt>
<concat destfile="${search.cgi.out}">
<fileset file="${search.cgi.in}"/>
<fileset file="${search.cgi.data}"/>
</concat>
<chmod perm="ugo+x" file="${search.cgi.out}"/>
<xslt style="${xsl.dir}/isgci.xsl"
in="${refs.xml.in}"
out="/dev/null"
force="true">
<classpath refid="run.classpath"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<param name="homeurl" expression="${home.url}"/>
<param name="homedir" expression="${web.dir}"/>
<param name="rooturl" expression="${root.url}"/>
<param name="classesdir" expression="${web.classes.rel}"/>
<param name="graphlinks" expression="${graphlinks.xml.out}"/>
<param name="refsinput" expression="${refs.xml.in}"/>
</xslt>
<xslt style="${xsl.dir}/mkkeywords.xsl"
in="${isgci.full.xml.out}"
out="/dev/null"
force="true">
<classpath refid="run.classpath"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<param name="dir" expression="${web.keys.dir}"/>
<param name="smallgraphs" expression="${smallgraphs.xml.in}"/>
</xslt>
<touch file="${build.dir}/classes.html.timestamp"/>
</target>
<target name="classes.html.full"
depends="compile, init.web, smallgraphs.full, smallgraphs.html.full,
deductions.full"
description="classes.html, with full dependency handling">
<outofdate>
<sourcefiles>
<pathelement path="${build.dir}/smallgraphs.html.timestamp"/>
<pathelement path="${isgci.full.xml.out}"/>
<pathelement path="${search.cgi.in}"/>
<pathelement path="${refs.xml.in}"/>
<pathelement path="${smallgraphs.xml.in}"/>
</sourcefiles>
<targetfiles>
<pathelement path="${search.cgi.data}"/>
<pathelement path="${search.cgi.out}"/>
</targetfiles>
<sequential>
<antcall target="classes.html"/>
</sequential>
</outofdate>
</target>
<target name="static.html"
description="Creates all web data other than classes/smallgraphs">
<copy todir="${web.dir}" file="${data.dir}/isgci.jnlp" overwrite="yes">
<filterset>
<!-- HOMEURL will be set to home.url by distrib target -->
<filter token="HOMEURL" value="file:${web.dir}/"/>
</filterset>
</copy>
<copy todir="${web.dir}">
<fileset dir="${data.webstatic.dir}" includes="**"/>
</copy>
<chmod perm="ugo+x">
<fileset dir="${web.dir}" includes="*.cgi"/>
</chmod>
<exec executable="xpath"
input="${data.dir}/new.html.3"
output="${build.data.dir}/news.inc"
error="/dev/null">
<arg value="//li[position() < 4]"/>
</exec>
<concat force="yes" destfile="${build.data.dir}/static.4">
<fileset file="${data.dir}/static.4.0"/>
<fileset file="${build.data.dir}/status.inc"/>
<fileset file="${data.dir}/static.4.2"/>
<fileset file="${build.data.dir}/news.inc"/>
<fileset file="${data.dir}/static.4.4"/>
<filterchain>
<replacetokens>
<token key="HOMEURL" value="${home.url}"/>
</replacetokens>
</filterchain>
</concat>
<concat force="yes" destfile="${web.dir}/index.html">
<fileset file="${data.dir}/static.0"/>
<fileset file="${data.dir}/index.html.1"/>
<fileset file="${data.dir}/static.2"/>
<fileset file="${data.dir}/index.html.3.0"/>
<fileset file="${build.data.dir}/classics.inc"/>
<fileset file="${data.dir}/index.html.3.2"/>
<fileset file="${build.data.dir}/problems.inc"/>
<fileset file="${data.dir}/index.html.3.4"/>
<fileset file="${build.data.dir}/parameters.inc"/>
<fileset file="${data.dir}/index.html.3.6"/>
<fileset file="${build.data.dir}/static.4"/>
</concat>
<concat force="yes" destfile="${web.dir}/about.html">
<fileset file="${data.dir}/static.0"/>
<fileset file="${data.dir}/about.html.1"/>
<fileset file="${data.dir}/static.2"/>
<fileset file="${data.dir}/about.html.3"/>
<fileset file="${build.data.dir}/static.4"/>
<filterchain>
<replacetokens>
<token key="HOMEURL" value="${home.url}"/>
</replacetokens>
</filterchain>
</concat>
<concat force="yes" destfile="${web.dir}/screenshots.html">
<fileset file="${data.dir}/static.0"/>
<fileset file="${data.dir}/screenshots.html.1"/>
<fileset file="${data.dir}/static.2"/>
<fileset file="${data.dir}/screenshots.html.3"/>
<fileset file="${build.data.dir}/static.4"/>
</concat>
<concat force="yes" destfile="${web.dir}/new.html">
<fileset file="${data.dir}/static.0"/>
<fileset file="${data.dir}/new.html.1"/>
<fileset file="${data.dir}/static.2"/>
<fileset file="${data.dir}/new.html.3"/>
<fileset file="${build.data.dir}/static.4"/>
</concat>
<concat force="yes" destfile="${web.dir}/faq.html">
<fileset file="${data.dir}/static.0"/>
<fileset file="${data.dir}/faq.html.1"/>
<fileset file="${data.dir}/static.2"/>
<fileset file="${data.dir}/faq.html.3"/>
<fileset file="${build.data.dir}/static.4"/>
</concat>
<concat force="yes" destfile="${web.dir}/contact.html">
<fileset file="${data.dir}/static.0"/>
<fileset file="${data.dir}/contact.html.1"/>
<fileset file="${data.dir}/static.2"/>
<fileset file="${data.dir}/contact.html.3"/>
<fileset file="${build.data.dir}/static.4"/>
</concat>
<concat force="yes" destfile="${web.dir}/impressum.html">
<fileset file="${data.dir}/static.0"/>
<fileset file="${data.dir}/impressum.html.1"/>
<fileset file="${data.dir}/static.2"/>
<fileset file="${data.dir}/impressum.html.3"/>
<fileset file="${build.data.dir}/static.4"/>
</concat>
</target>
<target name="static.html.full"
depends="init.web, smallgraphs.html.full, classes.html.full"
description="static.html, with full dependency handling">
<antcall target="static.html"/>
</target>
<target name="distrib"
description="Create the distribution tar file">
<delete dir="${distrib.dir}"/>
<exec executable="cp">
<arg value="-a"/>
<arg value="${web.dir}"/>
<arg value="${distrib.dir}"/>
</exec>
<copy todir="${distrib.dir}" file="${data.dir}/isgci.jnlp" overwrite="yes">
<filterset>
<filter token="HOMEURL" value="${home.url}/"/>
</filterset>
</copy>
<zip destfile="${distrib.dir}/data.zip">
<fileset dir="${build.data.dir}">
<include name="${isgci.sage.xml.rel}"/>
<include name="${smallgraphs.sage.txt.rel}"/>
<include name="isgci.dtd"/>
</fileset>
</zip>
<exec executable="tar">
<arg value="czf"/> <arg value="${distrib.tar}"/>
<arg value="-C"/> <arg value="${distrib.dir}"/>
<arg value="."/>
</exec>
<exec executable="bash">
<arg value="-c"/>
<arg value="(cat ${autocache.txt}; cat ${names.txt} | grep '^AUTO_') |
sort -u > ${autocache.txt}.new;
mv ${autocache.txt}.new ${autocache.txt}"/>
</exec>
</target>
<target name="web.full"
depends="maps.full, smallgraphs.html.full, classes.html.full,
static.html.full"
description="All the *.html.full targets">
</target>
<target name="distrib.full"
depends="jar.full, web.full"
description="distrib, with full dependency handling">
<outofdate>
<sourcefiles>
<pathelement path="${isgci.jar}"/>
<pathelement path="${build.dir}/smallgraphs.html.timestamp"/>
<pathelement path="${build.dir}/classes.html.timestamp"/>
<fileset dir="${web.dir}"/>
</sourcefiles>
<targetfiles>
<pathelement path="${distrib.tar}"/>
</targetfiles>
<sequential>
<antcall target="distrib"/>
</sequential>
</outofdate>
</target>
<target name="run"
description="Run isgci">
<java jar="${isgci.jar}" fork="true">
<arg value="file://${web.dir}/"/>
</java>
</target>
<target name="testforbidden"
description="Manually test forbidden subgraphs">
<java classname="teo.isgci.appl.TestForbidden" fork="true"
classpathref="run.classpath">
<arg value="file://${build.dir}/"/>
</java>
</target>
<target name="iq"
description="ISGCI Query">
<java classname="teo.isgci.appl.iq.IQ" fork="true"
classpathref="run.classpath">
<arg value="file://${build.dir}/"/>
</java>
</target>
<target name="test">
<java classname="teo.isgci.xml.SmallGraphReader" fork="true"
classpathref="run.classpath">
<arg file="test.xml"/>
</java>
</target>
<target name="families.graphml"
description="Create graphML for families">
<xslt style="${xsl.dir}/smallgraphs-yed.xsl"
in="${smallgraphs.xml.in}"
out="families.graphml"
force="true">
<classpath refid="run.classpath"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
</target>
</project>