Apache Ant is used to compile the examples from this book. The examples are contained in a directory named “HTTPRecipes”. You get this directory from the archive file you downloaded that contains the examples. For more information on how to obtain the examples from this book, refer to Appendix A.

    The examples shown here are from the HTTPRecipes directory located on my machine at /Users/jeff/HTTPRecipes. You can see the contents of this directory in Figure D.5.

Figure D.5: The Book’s Examples

The Book’s Examples

    Each of these files and directories serves a specific purpose, which is listed in Table D.1.

Table D.1: Contents of the HTTP Recipes Companion Download

Name Purpose
.settings Settings used by Eclipse.
com Source code for all of the book examples.
Dist The distribution directory, contains the JAR file.
Jar Contains all of the JAR files needed to compile the examples.
www Source code for the AXIS web services interface stubs.
.classpath The Eclipse classpath.
.project The Eclipse project file.
build.xml The Apache Ant build script.
recipe.bat Used to run the recipes with the correct classpath on Windows.
recipe.sh Used to run the recipes with the correct classpath on UNIX.

    To compile the book’s examples, move to the HTTPRecipes directory and execute the following command:

ant

    You should now see Figure D.6.

Figure D.6: Successful Build

Successful Build

    Now that you have compiled the book’s examples, you are ready to execute them.


Copyright 2005 - 2010 by Heaton Research, Inc.. Heaton Research™ and Encog™ are trademarks of Heaton Research. Click here for copyright and trademark information.