Java Properties 2 DITA plugin
Parent: DITA-OT Plugins
org.doctales.javaProperties2Dita is a DITA-OT plugin for converting Java property files to DITA. Java property files are simple key-value-files, that are converted to DITA <keyword>
elements. If you have a question, go to the questions section and ask the DOCTALES team. If you have found a bug or want to request a feature, please raise an issue.
Input
key=value
Output
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="test.properties">
<title>test.properties</title>
<body>
<div>
<keyword id="key">value</keyword>
</div>
</body>
</topic>
Installation
Installing the Plugin
Install the plugin to the DITA-OT with the following command:
dita --install https://github.com/doctales/org.doctales.javaProperties2Dita/archive/master.zip
Installing the Framework
This step is optional. To install the
- In
open the menu Options
>Preferences
. - In the preferences, open
Document Type Association
>Locations
. - Add the directory of the plugin in the DITA-OT, e.g.
/home/user/workspace/dita-ot/plugins/org.doctales.javaProperties2Dita
.
Using the Plugin
Convert via transformation scenario
- Open a Java properties file in
. - Launch the transformation sceanrio
Convert Java-Properties 2 DITA
. A DITA file is created in the directory of the input file.
Convert via Apache Ant transformation scenario
-
Import the
build_javaProperties2Dita.xml
to your Apache Ant build file. -
Call the transformation using the custom
<convert-properties-to-dita>
element.<convert-properties-to-dita input="input.properties" output="output.dita"/>