configuration-properties.dita 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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="configuring-the-dita-ot">
  5. <title>Configuration properties</title>
  6. <shortdesc>DITA-OT uses <filepath>.properties</filepath> files and internal properties that store configuration
  7. settings for the toolkit and its plug-ins. Configuration properties are available to both Ant and Java processes,
  8. but unlike argument properties, they cannot be set at run time.</shortdesc>
  9. <prolog>
  10. <metadata>
  11. <keywords>
  12. <indexterm>command line
  13. <indexterm>properties</indexterm></indexterm>
  14. <indexterm>properties</indexterm>
  15. <indexterm>Ant
  16. <indexterm>properties</indexterm></indexterm>
  17. <indexterm>Java
  18. <indexterm>properties</indexterm></indexterm>
  19. <indexterm>Ant
  20. <indexterm>configuring</indexterm></indexterm>
  21. <indexterm>Java
  22. <indexterm>configuring</indexterm></indexterm>
  23. <indexterm>Ant
  24. <indexterm>precedence</indexterm></indexterm>
  25. <indexterm>Java
  26. <indexterm>precedence</indexterm></indexterm>
  27. <indexterm><filepath>local.properties file</filepath></indexterm>
  28. </keywords>
  29. </metadata>
  30. </prolog>
  31. <refbody>
  32. <section>
  33. <p>When DITA-OT starts the Ant process, it looks for property values in the following order and locations:</p>
  34. <ol>
  35. <li>Any property passed to Ant from the command line with <parmname>-Dproperty</parmname> or
  36. <parmname>--property</parmname>=<option>value</option></li>
  37. <li>A custom property file passed with <parmname>--propertyfile</parmname></li>
  38. <li>A <filepath>local.properties</filepath> file in the root directory of the DITA-OT installation</li>
  39. <li>The <filepath>lib/org.dita.dost.platform/plugin.properties</filepath> file</li>
  40. <li>The <filepath>configuration.properties</filepath> file</li>
  41. </ol>
  42. <p>If a given property is set in multiple places, the first value “wins” and subsequent entries for the same
  43. property are ignored.</p>
  44. <p>You can use this mechanism to override DITA-OT default settings for your environment by passing parameters to
  45. the <cmdname>dita</cmdname> command with <parmname>--property</parmname>=<option>value</option>, or using
  46. entries in <filepath>.properties</filepath> files.</p>
  47. </section>
  48. </refbody>
  49. </reference>