lib-configuration-properties.dita 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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>lib/configuration.properties</filepath> file controls certain common properties, as well as
  10. some 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>otrelease</indexterm>
  17. <indexterm>otversion</indexterm>
  18. <indexterm>plugin.ignores</indexterm>
  19. <indexterm>plugin.order</indexterm>
  20. <indexterm>plugindirs</indexterm>
  21. <indexterm>temp-file-name-scheme</indexterm>
  22. </indexterm>
  23. <indexterm>files <indexterm>lib/configuration.properties file</indexterm>
  24. </indexterm>
  25. <indexterm>PDF processing <indexterm>configuration properties</indexterm>
  26. </indexterm>
  27. </keywords>
  28. </metadata>
  29. </prolog>
  30. <refbody>
  31. <section>
  32. <p>The contents of the <filepath>configuration.properties</filepath> file are added to the DITA-OT configuration
  33. in the <codeph>dost-configuration.jar</codeph> file when the plug-in integration process runs. The following
  34. properties are typically set in this file:</p>
  35. <parml>
  36. <plentry id="otrelease-otversion">
  37. <pt><parmname>otrelease</parmname></pt>
  38. <pt><parmname>otversion</parmname></pt>
  39. <pd>The DITA-OT release number and maintenance version stored here are read when version information is
  40. requested on the commmand line via <cmdname>dita</cmdname>
  41. <option>--version</option>.</pd>
  42. </plentry>
  43. <plentry id="default-cascade">
  44. <pt><parmname>default.cascade</parmname></pt>
  45. <pd>
  46. <p>Specifies the processing default value for the DITA 1.3 <xmlatt>cascade</xmlatt> attribute, which
  47. determines how map-level metadata attributes are applied to the children of elements where the attributes
  48. are specified. DITA-OT uses the <option>merge</option> value by default for backwards compatibility with
  49. DITA 1.2 and earlier.</p>
  50. <note type="warning" id="protected-config-props">This property can only be set in
  51. <filepath>configuration.properties</filepath> and should not be modified.</note></pd>
  52. </plentry>
  53. <plentry id="temp-file-name-scheme">
  54. <pt><parmname>temp-file-name-scheme</parmname></pt>
  55. <!-- org.dita.dost.module.GenMapAndTopicListModule$DefaultTempFileScheme -->
  56. <pd>
  57. <p>This setting specifies the name of the Java class that defines how the source URL of a topic is mapped to
  58. the URL of the temporary file name. The current default method uses a 1:1 mapping, though future
  59. implementations may use alternative approaches such as hashes or full absolute paths as file names.</p>
  60. <note conref="#configuration/protected-config-props"/>
  61. </pd>
  62. </plentry>
  63. <plentry id="cli-color" rev="2.5">
  64. <pt><parmname>cli.color</parmname></pt>
  65. <pd>
  66. <p>Specifies whether the <cmdname>dita</cmdname> command prints colored output on the command line console.
  67. When set to <option>true</option>, error messages in <cmdname>dita</cmdname> command output will appear in
  68. red on terminals that support <xref href="https://en.wikipedia.org/wiki/ANSI_escape_code" format="html"
  69. scope="external">ANSI escape codes</xref>, such as on Linux or macOS. Set to <option>false</option> to
  70. disable the color. (Colored output is not supported on Windows consoles such as <cmdname>cmd.exe</cmdname>
  71. or PowerShell).</p>
  72. </pd>
  73. </plentry>
  74. <plentry id="plugindirs">
  75. <pt><parmname>plugindirs</parmname></pt>
  76. <pd id="plugindirs.desc">A semicolon-separated list of directory paths that the DITA-OT searches for plug-ins
  77. to install; any relative paths are resolved against the DITA-OT base directory. Any immediate subdirectory
  78. that contains a <filepath>plugin.xml</filepath> file is installed.</pd>
  79. </plentry>
  80. <plentry id="plugin.ignores">
  81. <pt><parmname>plugin.ignores</parmname></pt>
  82. <pd id="plugin.ignores.desc">A semicolon-separated list of directory names to be ignored during plug-in
  83. installation; any relative paths are resolved against the DITA-OT base directory.</pd>
  84. </plentry>
  85. <plentry id="plugin-order">
  86. <pt><parmname>plugin.order</parmname></pt>
  87. <pd>Defines the order in which plug-ins are processed. In XML catalog files, the order of imports is
  88. significant. If multiple plug-ins define the same thing (differently), the first catalog entry “wins”.
  89. DITA-OT uses this property to define the order in which catalog entries are written. This mechanism is
  90. currently used to ensure that DITA 1.3 grammar files take precedence over their DITA 1.2 equivalents.</pd>
  91. </plentry>
  92. <plentry conref="ant-parameters-details.dita#pdf/org.dita.pdf2.i18n.enabled">
  93. <pt/>
  94. <pd/>
  95. </plentry>
  96. </parml>
  97. </section>
  98. </refbody>
  99. <related-links>
  100. <link keyref="dita13-spec-metadata-cascade"/>
  101. <link keyref="dita13-spec-metadata-cascade-example"/>
  102. <link keyref="jelovirt-on-pdf2-i18n"/>
  103. </related-links>
  104. </reference>