/
configuration-properties.dita
49 lines (49 loc) · 2.54 KB
/
configuration-properties.dita
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
<reference id="configuring-the-dita-ot">
<title>Configuration properties</title>
<shortdesc>DITA-OT uses <filepath>.properties</filepath> files and internal properties that store configuration
settings for the toolkit and its plug-ins. Configuration properties are available to both Ant and Java processes,
but unlike argument properties, they cannot be set at run time.</shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm>command line
<indexterm>properties</indexterm></indexterm>
<indexterm>properties</indexterm>
<indexterm>Ant
<indexterm>properties</indexterm></indexterm>
<indexterm>Java
<indexterm>properties</indexterm></indexterm>
<indexterm>Ant
<indexterm>configuring</indexterm></indexterm>
<indexterm>Java
<indexterm>configuring</indexterm></indexterm>
<indexterm>Ant
<indexterm>precedence</indexterm></indexterm>
<indexterm>Java
<indexterm>precedence</indexterm></indexterm>
<indexterm><filepath>local.properties file</filepath></indexterm>
</keywords>
</metadata>
</prolog>
<refbody>
<section>
<p>When DITA-OT starts the Ant process, it looks for property values in the following order and locations:</p>
<ol>
<li>Any property passed to Ant from the command line with <parmname>-Dproperty</parmname> or
<parmname>--property</parmname>=<option>value</option></li>
<li>A custom property file passed with <parmname>--propertyfile</parmname></li>
<li>A <filepath>local.properties</filepath> file in the root directory of the DITA-OT installation</li>
<li>The <filepath>lib/org.dita.dost.platform/plugin.properties</filepath> file</li>
<li>The <filepath>configuration.properties</filepath> file</li>
</ol>
<p>If a given property is set in multiple places, the first value “wins” and subsequent entries for the same
property are ignored.</p>
<p>You can use this mechanism to override DITA-OT default settings for your environment by passing parameters to
the <cmdname>dita</cmdname> command with <parmname>--property</parmname>=<option>value</option>, or using
entries in <filepath>.properties</filepath> files.</p>
</section>
</refbody>
</reference>