This topic lists detailed Ant tasks and script.
The build process including pre-process can be called by using Ant script. There are four major Ant script files:
conductor.xml, pretargets.xml, ditatargets.xml and catalog-ant.xml.
The following targets in conductor.xml will call the complete processing of DITA files which can be loaded by users.
These ant scripts are in ant directory. They are simple and easy to learn. From these files, you can learn how to write your own Ant script to build your own process.
<?xml version="1.0" encoding="UTF-8" ?> <project name="sample_xhtml" default="all" basedir=".."> <import file="${basedir}${file.separator}conductor.xml"/> <property name="dita.extname" value=".xml"/> <target name="all" depends="sample2xhtml"> </target> <!-- revise below here --> <target name="sample2xhtml" depends="use-init"> <antcall target="dita2xhtml"> <param name="args.input" value="@DITA.INPUT@"/> <param name="output.dir" value="@OUTPUT.DIR@"/> </antcall> </target> </project>
ant -f ant/template_xhtml.xmlAll of targets we use here are defined in conductor.xml. Therefore, you need to import that file before calling the target.