forked from citrusframework/citrus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
124 lines (106 loc) · 5.03 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
<?xml version="1.0"?>
<project name="citrus" default="doc.all" basedir=".">
<target name="doc.clean" description="Clean up previously generated documentation files">
<delete dir="${basedir}/target/doc"/>
</target>
<target name="doc.all" depends="doc.clean,doc.html,doc.htmlsingle,doc.pdf" description="Generate complete reference documentation"/>
<target name="doc.html" description="Generate reference documentation to html">
<mkdir dir="${basedir}/target/doc/html/images"/>
<copy todir="${basedir}/target/doc/html/images">
<fileset dir="${basedir}/src/docbook/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
<include name="*.png"/>
<include name="**/"/>
</fileset>
</copy>
<copy todir="${basedir}/target/doc/html/" failonerror="false">
<fileset dir="${basedir}/src/docbook/styles">
<include name="*.css"/>
</fileset>
</copy>
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${basedir}/target/doc/html">
<classpath>
<fileset dir="${basedir}/src/docbook/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<jvmarg value="-Xmx256M"/>
<jvmarg value="-XX:MaxPermSize=128m"/>
<sysproperty key="xslthl.config" value="file:///${basedir}/src/docbook/lib/docbook-xsl/highlighting/xslthl-config.xml"/>
<arg value="${basedir}/src/docbook/index.xml"/>
<arg value="${basedir}/src/docbook/styles/reference-html-chunk.xsl"/>
</java>
</target>
<target name="doc.htmlsingle" description="Generate reference documentation to single html">
<mkdir dir="${basedir}/target/doc/html_single/images"/>
<copy todir="${basedir}/target/doc/html_single/images">
<fileset dir="${basedir}/src/docbook/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
<include name="*.png"/>
<include name="**/"/>
</fileset>
</copy>
<copy todir="${basedir}/target/doc/html_single/" failonerror="false">
<fileset dir="${basedir}/src/docbook/styles">
<include name="*.css"/>
</fileset>
</copy>
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${basedir}/src/docbook">
<classpath>
<fileset dir="${basedir}/src/docbook/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<jvmarg value="-Xmx256M"/>
<jvmarg value="-XX:MaxPermSize=128m"/>
<sysproperty key="xslthl.config" value="file:///${basedir}/src/docbook/lib/docbook-xsl/highlighting/xslthl-config.xml"/>
<arg value="-o"/>
<arg value="${basedir}/target/doc/html_single/index.html"/>
<arg value="${basedir}/src/docbook/index.xml"/>
<arg value="${basedir}/src/docbook/styles/reference-html.xsl"/>
</java>
</target>
<target name="doc.pdf" description="Generate reference documentation to pdf format">
<mkdir dir="${basedir}/target/doc/pdf/images"/>
<copy todir="${basedir}/target/doc/pdf/images">
<fileset dir="${basedir}/src/docbook/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
<include name="*.png"/>
<include name="**/"/>
</fileset>
</copy>
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${basedir}/src/docbook">
<classpath>
<fileset dir="${basedir}/src/docbook/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<jvmarg value="-Xmx256M"/>
<jvmarg value="-XX:MaxPermSize=128m"/>
<sysproperty key="xslthl.config" value="file:///${basedir}/src/docbook/lib/docbook-xsl/highlighting/xslthl-config.xml"/>
<arg value="-o"/>
<arg value="${basedir}/target/doc/pdf/docbook_fop.tmp"/>
<arg value="${basedir}/src/docbook/index.xml"/>
<arg value="${basedir}/src/docbook/styles/reference-pdf.xsl"/>
<!-- controls the double sided pagination style -->
<arg value="double.sided=0"/>
</java>
<java classname="org.apache.fop.apps.Fop" fork="true" maxmemory="256m" dir="${basedir}/src/docbook">
<classpath>
<fileset dir="${basedir}/src/docbook/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="${basedir}/target/doc/pdf/docbook_fop.tmp"/>
<arg value="${basedir}/target/doc/pdf/citrus-reference.pdf"/>
</java>
<delete file="target/doc/pdf/docbook_fop.tmp"/>
<delete dir="target/doc/pdf/images"/>
</target>
</project>