List of Listings

 

Chapter 1. Introducing Ant

Listing 1.1. A typical scenario: compile, document, package, and deploy

Chapter 2. A first Ant build

Listing 2.1. Our first complete build file, including packaging and executing a Java program

Chapter 4. Testing with JUnit

Listing 4.1. Integrated testing, reporting, and failure

Chapter 5. Packaging projects

Listing 5.1. Example target to generate Unix and Windows Readme files from the same original

Listing 5.2. Creating a binary Zip distribution

Listing 5.3. Creating a tar file from our expanded Zip file

Chapter 6. Executing programs

Listing 6.1. An entry point to add events to our diary

Chapter 7. Distributing our application

Listing 7.1. Uploading files to a Unix system

Listing 7.2. The offline probe from Ant’s own build file

Listing 7.3. Using <antcall> to manage a series of distribution actions

Chapter 8. Putting it all together

Listing 8.1. The entry-point targets for the build file

Listing 8.2. Setting Ant properties to the locations and values of the build file

Listing 8.3. Declaring the datatypes for the project: the paths and filesets that will be referred to by refid references in tasks.

Listing 8.4. Compiling the source and creating a JAR file

Listing 8.5. Running the unit tests and creating the reports

Listing 8.6. Preparing the documentation and scripts

Listing 8.7. Signing the JAR files

Listing 8.8. Creating the Zip files

Listing 8.9. The target to email the Zip file with a covering note