configuration-properties-file.dita 8.2 KB

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