Running Ant

After setting up the Ant environment, you can build the DITA output by running ant command.

Here are some samples to explain how to use Ant to build sample output in the DITA directory.
Note: To run the Ant demo properly, you should switch to the DITA installation directory under the command prompt.

You can reuse the targets provided by the conductor.xml file in builds for your own DITA content by coping the build.xml, conductor.xml, pretargets.xml, ditatargets.xml and catalog-ant.xml files into a new directory and edit the build.xml to specify your DITA files. Refer to Ant tasks and tweaks for more information of those functions.

Note: To troubleshoot problems in setting up Java, Ant, Saxon, or FOP, you will get better information from the communities for those components rather than the communities for the DITA. Of course, if you find issues relevant to the DITA XSLT scripts (or have ideas for improving them), you are encouraged to engage the DITA community.