-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
100 lines (82 loc) · 3.87 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="eclipse-cheatsheets-to-dita-to-pdf" default="TransformAll" basedir=".">
<property name="cheatsheets.to.dita" value="src${file.separator}cheatsheet-to-dita.xsl"/>
<property name="debrief.output.dir" value="output${file.separator}debrief${file.separator}"/>
<property name="infosvg.output.dir" value="output${file.separator}infosvg${file.separator}"/>
<property name="lib.dir" value="src${file.separator}libs${file.separator}"/>
<property name="dita-ot.dir" value="${lib.dir}dita-ot-2.2.2"/>
<property name="debrief.output.dir.sep" value="${debrief.output.dir}${file.separator}"/>
<property name="debrief.output.ditamap" value="${debrief.output.dir.sep}map.ditamap"/>
<property name="dita.build.file" value="${dita-ot.dir}${file.separator}build.xml"/>
<target name="xslt2">
<!-- create the root Ditamap file an the four child task files -->
<xslt in="test.xml" out="${debrief.output.ditamap}" style="${cheatsheets.to.dita}" force="true"/>
</target>
<!--
<target name="toPDF-SVG">
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}pdf"/>
<property name="transtype" value="infosvg"/>
</ant>
</target>
-->
<target name="toPDF">
<!-- run the Ditamap through DITA-OT to produce the PDF -->
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}pdf"/>
<property name="transtype" value="debrief"/>
</ant>
</target>
<target name="toXHTML">
<!-- run the Ditamap through DITA-OT to produce the XHTML -->
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}xhtml"/>
<property name="transtype" value="xhtml"/>
</ant>
</target>
<target name="toTocJS">
<!-- run the Ditamap through DITA-OT to produce the TocJS -->
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}tocjs"/>
<property name="transtype" value="tocjs"/>
</ant>
</target>
<target name="toHTMLHelp">
<!-- run the Ditamap through DITA-OT to produce the HTML Help -->
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}htmlhelp"/>
<property name="transtype" value="htmlhelp"/>
</ant>
</target>
<target name="toDocbook">
<!-- run the Ditamap through DITA-OT to produce the Docbook -->
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}docbook"/>
<property name="transtype" value="docbook"/>
</ant>
</target>
<!-- ODT output is not currently building and is not included in TransformAll -->
<target name="toODT">
<!-- run the Ditamap through DITA-OT to produce the ODT -->
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}odt"/>
<property name="transtype" value="odt"/>
</ant>
</target>
<!-- Word output is not currently building and is not included in TransformAll -->
<target name="toWord">
<ant antfile="${dita.build.file}">
<property name="args.input" location="${debrief.output.ditamap}"/>
<property name="output.dir" location="${debrief.output.dir.sep}wordrtf"/>
<property name="transtype" value="wordrtf"/>
</ant>
</target>
<target name="TransformAll" depends="xslt2, toPDF, toXHTML, toTocJS, toHTMLHelp, toDocbook"/>
</project>