If you already have locally-installed copies of Ant and the other required tools, install either the minimal or standard package.
In addition, determine the specific DITA-OT transformations that you intend to support and ensure that you have the prerequisite software installed for them.
For more information, see Prerequisite software and Tested platforms and tools.
Package | File name |
---|---|
Minimal | DITA-OT1.8.5_minimal_bin.zip |
Standard | DITA-OT1.8.5_standard_bin.zip |
set JAVA_HOME=<JRE_dir>
set ANT_HOME=<Ant_dir>
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%
set DITA_HOME=<DITA-OT_dir>
set CLASSPATH=%DITA_HOME%\lib\dost.jar;%CLASSPATH%
set CLASSPATH=%DITA_HOME%\lib;%CLASSPATH%
set CLASSPATH=%DITA_HOME%\lib\resolver.jar;%CLASSPATH%
set CLASSPATH=%DITA_HOME%\lib\commons-codec-1.4.jar;%CLASSPATH%
set CLASSPATH=<xerces_dir>\xercesImpl.jar;<xerces_dir>\xml-apis.jar;%CLASSPATH%
Processor | Action |
---|---|
Saxon |
Set up the CLASSPATH environment variable to
include the Saxon JAR files, for
example:
set CLASSPATH=<saxon_dir>\saxon9.jar;<saxon_dir>\saxon9-dom.jar;%CLASSPATH% Set up the ANT_OPTS environment variable, for
example:
set ANT_OPTS=%ANT_OPTS% -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl |
Xalan | Set up the CLASSPATH environment variable to
include the Xalan JAR files, for example:
set CLASSPATH=<xalan_dir>\xalan.jar;%CLASSPATH% |
set CLASSPATH=<icu4j_dir>\icu4j.jar;%CLASSPATH%
set JHHOME=<javahelp_dir>
hhc.dir=C:\\Program Files (x86)\\HTML Help Workshop
Processor | Action |
---|---|
FOP |
Add the FOP installation directory to the
local.properties file as the
fop.home property, for
example:
fop.home=C:\\Program Files\\fop |
RenderX | Add the RenderX installation directory to the
local.properties file as the
xep.dir property, for
example:xep.dir=C:\\Program Files\\xep |
Antenna House | Add the AH Formatter installation directory to the
local.properties file as the
axf.path property, for
example:axf.path=C:\\Program Files\\AHFormatterV6 |
C:\DITA-OT1.8.5>ant -f samples\ant_sample\sample_all.xml