Setting up Ant

This topic guides you how to set up Ant environment properly.

Assume that you have already installed the Java Development Kit (JDK) and the XSLT processor before setting up the Ant.
Set up the Ant
  1. Download and extract the Ant package file (available on http://ant.apache.org/bindownload.cgi) into a directory of your choice.
  2. Set up environment variable.
    Option Description
    If you use Windows, follow these steps.
    • Set the JAVA_HOME. set JAVA_HOME=<jdk_dir>
    • Set the ANT_HOME. set ANT_HOME=<ant_dir>
    • Set the PATH. set PATH=%PATH%;<ant_dir>\bin
    If you use Linux, follow these steps.
    • Set JAVA_HOME export JAVA_HOME=<jdk_dir>
    • Set the ANT_HOME export ANT_HOME=<ant_dir>
    • Set the PATH (export PATH=$PATH:<ant_dir>\bin
  3. Optional: If you have installed optional output FOP to generate PDF output, see DITA installation for detail information of setting up.