Processing (building) the grocery shopping sample

In this topic you will process (build) the map you created in Creating maps. You will be working in the MY_DITA_SOURCE/samples/groceryshopping/ant_scripts directory. This topic assumes you will be building with the Ant scripts in the working subdirectory, but you can also build the completed files by using the Ant scripts in the completed subdirectory. This topic also assumes you are familiar with the information in About the grocery shopping sample, and that you have created the topics according to the instructions in Topics. If you need more information about Ant or Ant scripts, see About Ant or About Ant scripts.
  1. Go to the groceryshopping/ant_scripts/working directory.
  2. Using your DITA authoring tool or a plain text editor, open the version of the Ant script you want to run. You can process to one of three target environments: XHTML, HTML Help, or PDF2.
  3. Make sure the Ant script is set up correctly for your environment.
  4. In the Command Prompt, navigate to the ant_scripts/working directory.
  5. Do one of the following:

    To build XHTML output for the grocery shopping sample, enter the command ant -f grocery_xhtml.xml.

    To build HTML Help output for the grocery shopping sample, enter the command ant -f grocery_htmlhelp.xml.

    To build PDF2 output for the grocery shopping sample, enter the command ant -f grocery_pdf2.xml.

  6. Check the output directory to be sure the output files are correct.