-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
72 lines (62 loc) · 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="dnet-lite" basedir="." default="pdf">
<property name="app.path" value="..\..\apps"/>
<property name="saxon" value="${app.path}\Saxon\saxon9he.jar"/>
<property name="xsltproc" value="${app.path}\xsltproc\xsltproc.exe"/>
<property name="fop" value="${app.path}\fop\fop.bat"/>
<property name="source.file" value="dnet-lite"/>
<property name="target.file" value="${source.file}"/>
<property name="xsl.html" value="xsl\customization.HTML.xsl"/>
<property name="xsl.fo" value="xsl\customization.FO.xsl"/>
<!-- FIXME -->
<target name="db">
<xslt
in="${source.file}.xml"
out="${target.file}.html"
style="${xsl.html}"
force="true">
<classpath location="${saxon}"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
</target>
<target name="html">
<exec executable="${xsltproc}" failonerror="true">
<arg value="--xinclude"/>
<arg value="--output" />
<arg value="${target.file}.html" />
<arg value="${xsl.html}"/>
<arg value="${source.file}.xml"/>
</exec>
</target>
<target name="fo">
<exec executable="${xsltproc}" failonerror="true">
<arg value="--xinclude"/>
<arg value="--output" />
<arg value="${target.file}.fo" />
<arg value="${xsl.fo}"/>
<arg value="${source.file}.xml"/>
</exec>
</target>
<target name="pdf" depends="fo">
<exec executable="${fop}" failonerror="true">
<arg value="-fo"/>
<arg value="${source.file}.fo" />
<arg value="-pdf" />
<arg value="${target.file}.pdf"/>
</exec>
</target>
<target name="rtf" depends="fo">
<exec executable="${fop}" failonerror="true">
<arg value="-fo"/>
<arg value="${source.file}.fo" />
<arg value="-rtf" />
<arg value="${target.file}.rtf"/>
</exec>
</target>
<target name="clean" description="Tidying up...">
<delete file="${target.file}.fo"/>
<delete file="${target.file}.rtf"/>
<delete file="${target.file}.pdf"/>
<delete file="${target.file}.html"/>
</target>
</project>