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.

Creating a Build File for a Shared Library

The model build file has six targets: init, clean, prepare, compile, package, and all. The build files in this example have similar targets:

init --Initializes all the other properties relative to the outputdir.
clean--Cleans up the output directories and the output JAR file.
prepare--Creates the output directories if they do not already exist.
compile--Compiles the Java source files for the model into the build directory defined in the init target. package--Packages the compiled Java source into a JAR file.
all--Runs all the tags. It is the default target of this build project.