Skip to content

Commit 9cceb75

Browse files
committed
Move build parameters to .properties files
Fixes #119 Signed-off-by: Roger Sheen <roger@infotexture.net>
1 parent dc7a7e2 commit 9cceb75

File tree

4 files changed

+54
-18
lines changed

4 files changed

+54
-18
lines changed

build.xml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -141,38 +141,23 @@
141141
<target name="pdf">
142142
<dita-ot transtype="pdf" input="userguide-book.ditamap" output="${doc.out.dir}">
143143
<properties>
144-
<property name="args.gen.task.lbl" value="YES"/>
145-
<property name="outputFile.base" value="userguide"/>
146-
<property name="processing-mode" value="strict"/>
144+
<property file="samples/properties/docs-build-pdf.properties"/>
147145
</properties>
148146
</dita-ot>
149147
</target>
150148

151149
<target name="html">
152150
<dita-ot transtype="html5" input="userguide.ditamap" output="${doc.out.dir}">
153151
<properties>
154-
<property name="args.copycss" value="yes"/>
155-
<property name="args.css" value="dita-ot-doc.css"/>
156-
<property name="args.cssroot" value="resources"/>
157-
<property name="args.csspath" value="css"/>
158-
<property name="args.gen.task.lbl" value="YES"/>
159-
<property name="args.hdr" value="${basedir}/resources/header.xml"/>
160-
<property name="args.html5.toc" value="toc"/>
161-
<property name="nav-toc" value="partial"/>
162-
<property name="processing-mode" value="strict"/>
152+
<property file="samples/properties/docs-build-html5.properties"/>
163153
</properties>
164154
</dita-ot>
165155
</target>
166156

167157
<target name="htmlhelp">
168158
<dita-ot transtype="htmlhelp" input="userguide.ditamap" output="${doc.out.dir}/htmlhelp">
169159
<properties>
170-
<property name="args.copycss" value="yes"/>
171-
<property name="args.css" value="dita-ot-doc.css"/>
172-
<property name="args.cssroot" value="resources"/>
173-
<property name="args.csspath" value="css"/>
174-
<property name="args.gen.task.lbl" value="YES"/>
175-
<property name="processing-mode" value="strict"/>
160+
<property file="samples/properties/docs-build-htmlhelp.properties"/>
176161
</properties>
177162
</dita-ot>
178163

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copy the custom .css file to the output directory:
2+
args.copycss = yes
3+
4+
# Custom .css file used to style output:
5+
args.css = dita-ot-doc.css
6+
7+
# Location of the copied .css file relative to the output:
8+
args.csspath = css
9+
10+
# Directory that contains the custom .css file:
11+
args.cssroot = resources
12+
13+
# Generate headings for sections within task topics:
14+
args.gen.task.lbl = YES
15+
16+
# File that contains the running header content:
17+
args.hdr = ${basedir}/resources/header.xml
18+
19+
# Base name of the Table of Contents file:
20+
args.html5.toc = toc
21+
22+
# Generate a partial navigation TOC in topic pages:
23+
nav-toc = partial
24+
25+
# Stop processing if there are any errors:
26+
processing-mode = strict
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copy the custom .css file to the output directory:
2+
args.copycss = yes
3+
4+
# Custom .css file used to style output:
5+
args.css = dita-ot-doc.css
6+
7+
# Location of the copied .css file relative to the output:
8+
args.csspath = css
9+
10+
# Directory that contains the custom .css file:
11+
args.cssroot = resources
12+
13+
# Generate headings for sections within task topics:
14+
args.gen.task.lbl = YES
15+
16+
# Stop processing if there are any errors:
17+
processing-mode = strict
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Generate headings for sections within task topics:
2+
args.gen.task.lbl = YES
3+
4+
# Base file name of the generated PDF file:
5+
outputFile.base = userguide
6+
7+
# Stop processing if there are any errors:
8+
processing-mode = strict

0 commit comments

Comments
 (0)