Setting parameters with .properties files
DITA builds usually require a set of parameters that donโt change frequently. You can define these settings in a .properties file, and reference it when building output with the dita command. You can override any of the properties by specifying them as command-line arguments.
About .properties files
A .properties file is a text file that enumerates one or more name-value pairs, one per
line, in the format name = value
. The .properties filename extension is
customarily used, but is not required.
- Lines beginning with the
#
character are comments. - Properties specified as arguments of the dita command override those set in
.properties files. Restriction:For this reason, args.input and transtype canโt be set in the .properties file.
- If you specify the same property more than once, the last instance is used.
- Properties not used by the selected transformation type are ignored.
- Properties can reference other property values defined elsewhere in the .properties
file or passed by the dita command. Use the Ant
${property.name}
syntax. - You can set properties not only for the default DITA-OT transformation types, but also for custom plugins.