configuration-properties-file.dita 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <reference id="configuration" xml:lang="en">
  5. <title>The <filepath>configuration.properties</filepath> file</title>
  6. <titlealts>
  7. <navtitle><filepath>configuration.properties</filepath></navtitle>
  8. </titlealts>
  9. <shortdesc>The <filepath>configuration.properties</filepath> file controls certain common properties, as well as some
  10. properties that control PDF processing.</shortdesc>
  11. <prolog>
  12. <metadata>
  13. <keywords>
  14. <indexterm>configuration properties
  15. <indexterm>default.cascade</indexterm>
  16. <indexterm>org.dita.pdf2.i18n.enabled</indexterm>
  17. <indexterm>plugin.ignores</indexterm>
  18. <indexterm>plugin.order</indexterm>
  19. <indexterm>plugindirs</indexterm>
  20. <indexterm>temp-file-name-scheme</indexterm>
  21. <indexterm>cli.color</indexterm>
  22. <indexterm>registry</indexterm>
  23. <indexterm>default.coderef-charset</indexterm>
  24. </indexterm>
  25. <indexterm>files
  26. <indexterm>config/configuration.properties file</indexterm>
  27. </indexterm>
  28. <indexterm>PDF
  29. <indexterm>configuration properties</indexterm>
  30. </indexterm>
  31. <indexterm><xmlatt>cascade</xmlatt></indexterm>
  32. <indexterm>macOS
  33. <indexterm>colored console output</indexterm></indexterm>
  34. <indexterm>Linux
  35. <indexterm>colored console output</indexterm></indexterm>
  36. <indexterm>Windows
  37. <indexterm>colored console output</indexterm></indexterm>
  38. <indexterm>command line
  39. <index-see-also>dita command</index-see-also></indexterm>
  40. <indexterm>terminal
  41. <index-see>command line</index-see></indexterm>
  42. <indexterm>grammar files
  43. <index-see-also>schema</index-see-also>
  44. <index-see-also>DTD</index-see-also></indexterm>
  45. <indexterm><cmdname>dita</cmdname> command
  46. <indexterm>colored console output</indexterm></indexterm>
  47. <indexterm>metadata
  48. <indexterm><xmlatt>cascade</xmlatt></indexterm></indexterm>
  49. <indexterm>DITA 1.3
  50. <indexterm><xmlatt>cascade</xmlatt></indexterm></indexterm>
  51. <indexterm>default.cascade</indexterm>
  52. <indexterm>org.dita.pdf2.i18n.enabled</indexterm>
  53. <indexterm>plugin.ignores</indexterm>
  54. <indexterm>plugin.order</indexterm>
  55. <indexterm>plugindirs</indexterm>
  56. <indexterm>temp-file-name-scheme</indexterm>
  57. <indexterm>cli.color</indexterm>
  58. <indexterm>registry</indexterm>
  59. <indexterm>default.coderef-charset</indexterm>
  60. <indexterm>Java
  61. <indexterm>temporary file names</indexterm></indexterm>
  62. <indexterm>temporary file names</indexterm>
  63. <indexterm>catalog
  64. <indexterm>import precedence</indexterm></indexterm>
  65. <indexterm>internationalization
  66. <index-see>I18N</index-see></indexterm>
  67. </keywords>
  68. </metadata>
  69. </prolog>
  70. <refbody>
  71. <section>
  72. <p>The contents of the <filepath>config/configuration.properties</filepath> file are added to the DITA-OT
  73. configuration in the <codeph>dost-configuration.jar</codeph> file when the plug-in integration process runs. The
  74. following properties are typically set in this file:</p>
  75. <parml>
  76. <plentry id="default-cascade">
  77. <pt><parmname>default.cascade</parmname></pt>
  78. <pd>
  79. <p>Specifies the processing default value for the DITA 1.3 <xmlatt>cascade</xmlatt> attribute, which
  80. determines how map-level metadata attributes are applied to the children of elements where the attributes
  81. are specified. DITA-OT uses the <option>merge</option> value by default for backwards compatibility with
  82. DITA 1.2 and earlier.</p>
  83. <note type="warning" id="protected-config-props">This property can only be set in
  84. <filepath>configuration.properties</filepath> and should not be modified.</note></pd>
  85. </plentry>
  86. <plentry id="temp-file-name-scheme">
  87. <pt><parmname>temp-file-name-scheme</parmname></pt>
  88. <!-- org.dita.dost.module.GenMapAndTopicListModule$DefaultTempFileScheme -->
  89. <pd>
  90. <p>This setting specifies the name of the Java class that defines how the source URL of a topic is mapped to
  91. the URL of the temporary file name. The current default method uses a 1:1 mapping, though future
  92. implementations may use alternative approaches such as hashes or full absolute paths as file names.</p>
  93. <note conref="#configuration/protected-config-props"/>
  94. </pd>
  95. </plentry>
  96. <plentry id="cli-color" rev="2.5">
  97. <pt><parmname>cli.color</parmname></pt>
  98. <pd>
  99. <p>Specifies whether the <cmdname>dita</cmdname> command prints colored output on the command line console.
  100. When set to <option>true</option>, error messages in <cmdname>dita</cmdname> command output will appear in
  101. red on terminals that support
  102. <xref href="https://en.wikipedia.org/wiki/ANSI_escape_code" format="html" scope="external">ANSI escape
  103. codes</xref>, such as on Linux or macOS. Set to <option>false</option> to disable the color. (Colored
  104. output is not supported on Windows consoles such as <cmdname>cmd.exe</cmdname> or PowerShell).</p>
  105. </pd>
  106. </plentry>
  107. <plentry id="plugindirs">
  108. <pt><parmname>plugindirs</parmname></pt>
  109. <pd id="plugindirs.desc">
  110. <p>A semicolon-separated list of directory paths that DITA-OT searches for plug-ins to install; any relative
  111. paths are resolved against the DITA-OT base directory. Any immediate subdirectory that contains a
  112. <filepath>plugin.xml</filepath> file is installed.</p>
  113. <note type="tip">You can use this property to test custom plug-ins that are stored in other locations. For
  114. example, to install all of the sample plug-ins that are included in the DITA-OT documentation, append
  115. <filepath>;docsrc/samples/plugins</filepath> to the property value and run <cmdname>dita</cmdname>
  116. <parmname>--install</parmname>. You can maintain custom plug-ins in version-controlled repositories
  117. outside of the DITA-OT installation directory, and add the repository locations to the list of plug-in
  118. directories here to test your code.</note></pd>
  119. </plentry>
  120. <plentry id="plugin.ignores">
  121. <pt><parmname>plugin.ignores</parmname></pt>
  122. <pd id="plugin.ignores.desc">A semicolon-separated list of directory names to be ignored during plug-in
  123. installation; any relative paths are resolved against the DITA-OT base directory.</pd>
  124. </plentry>
  125. <plentry id="plugin-order">
  126. <pt><parmname>plugin.order</parmname></pt>
  127. <pd>Defines the order in which plug-ins are processed. In XML catalog files, the order of imports is
  128. significant. If multiple plug-ins define the same thing (differently), the first catalog entry “wins”.
  129. DITA-OT uses this property to define the order in which catalog entries are written. This mechanism is
  130. currently used to ensure that DITA 1.3 grammar files take precedence over their DITA 1.2 equivalents.</pd>
  131. </plentry>
  132. <plentry id="registry">
  133. <pt><parmname>registry</parmname></pt>
  134. <pd>Defines the list (and order) of plug-in repositories that are searched for available plug-ins during the
  135. installation process. In addition to the main plug-in registry at
  136. <xref keyref="site-plugin-registry"/>, you can create a registry of your own to store the custom plug-ins
  137. for your company or organization. To add a new entry, append the URL for your custom registry directory to
  138. the <codeph>registry</codeph> key value, separating each entry with a space. For more information, see
  139. <xref keyref="plugins-registry"/>.</pd>
  140. </plentry>
  141. <plentry conref="ant-parameters-details.dita#pdf/org.dita.pdf2.i18n.enabled">
  142. <pt/>
  143. <pd/>
  144. </plentry>
  145. <plentry id="charset">
  146. <pt><parmname>default.coderef-charset</parmname></pt>
  147. <pd>As of DITA-OT 3.3, the default character set for code references can be changed by specifying one of the
  148. character set values supported by the Java
  149. <xref format="html" href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html"
  150. scope="external">Charset</xref> class.</pd>
  151. </plentry>
  152. </parml>
  153. </section>
  154. </refbody>
  155. <related-links>
  156. <link keyref="dita13-spec-metadata-cascade"/>
  157. <link keyref="dita13-spec-metadata-cascade-example"/>
  158. <link keyref="jelovirt-on-pdf2-i18n"/>
  159. </related-links>
  160. </reference>