Developing Web Applications With Ant by Richard Hightower - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

A simple Ant build file.

In Listing 20.1, the compile target depends on the prepare target; thus, the prepare target is executed before the compile target. The prepare target uses the mkdir task to create the directory /tmp/prepare. Then, the compile target executes the javac task to build the Java source files contained in the ./src directory.