After setting up the Ant environment, you can build the DITA output by running the ant command.
Here are some samples to explain how to use Ant to build sample output in the DITA directory.
To build XHTML output for the sample DITA map samples/hierarchy.ditamap, run the command:
ant -Dargs.input=samples/hierarchy.ditamap -Doutput.dir=out/samples/web -Dtranstype=xhtml
This will generate the output into out/samples/web directory. The samples directory also contains dedicated Ant build files for various transformation types and the same output can be generated with the sample_xhtml.xml:
ant -f samples/ant_sample/sample_xhtml.xml
You can build all samples in the DITA directory:
ant -f build_demo.xml all
The building process will create an /out/ directory and put the output files in subdirectories that parallel the source directory.
ant -f build_demo.xml
Ant will prompt you for the input file, output directory, and transform type. Values on these parameters are case sensitive.