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 DITASAMPLE_GROCERY_SOURCE/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 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. Process to the XHTML target environment.
  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. Invoke the Ant script for the XHTML target. For example: ant -f grocery_all.xml dita2xhtml Alternatively, if you are processing in the Windows environment, you can use the grocery shopping sample batch script (runbuild.bat): the command is runbuild dita2xhtml. The batch script is in the DITASAMPLE_GARAGE_SOURCE/working directory. The processing is the same, except the batch script filters some of the processing messages into the log file, which is created in the DITASAMPLE_GROCERY_OUTPUT directory during processing. Alternatively, if you are processing in the Linux or UNIX environment, you can create your own batch script to perform the same functions as runbuild.bat.
  6. Check the output directory to be sure the output files are correct.
  7. Build the grocery shopping sample files to the HTML Help target.
  8. Build the grocery shopping sample files to the PDF2 target.