This topic guides you how to set up Ant environment
properly.
Set up the Ant
-
Download and extract the Ant package file (available on http://ant.apache.org/bindownload.cgi) into a directory of your choice.
-
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
|
- Optional:
If you have installed optional output FOP to generate PDF output,
see DITA
installation for detail information of setting up.