This book was designed to open up Ant and make it more accessible than any other book on the subject. It's a programmer-to-programmer book, written to make you an Ant pro without wasting time.
Chapter 1. Getting Started
Section 1.1. Ant's Origins
Section 1.2. Getting Ant
Section 1.3. Ant at Work
Section 1.4. Anatomy of a Build File
Section 1.5. Running Ant
Chapter 2. Using Properties and Types
Section 2.1. Using Properties to Control Tasks
Section 2.2. Using Property Files
Section 2.3. Handling Data Using Types
Chapter 3. Building Java Code
Section 3.1. Compiling Code
Section 3.2. Getting Input from the User
Section 3.3. Calling Other Ant Tasks
Section 3.4. Importing Other Build Files
Section 3.5. Documenting Code
Section 3.6. Creating JAR Files
Section 3.7. Setting Build Numbers
Section 3.8. Setting Timestamps
Chapter 4. Deploying Builds
Section 4.1. Packaging Applications for Deployment
Section 4.2. Preparing to Deploy
Section 4.3. Deploying Applications
Section 4.4. Scheduling Automatic Builds
Chapter 5. Testing Builds with JUnit
Section 5.1. Using JUnit
Section 5.2. Running Test Cases
Section 5.3. Testing in Batches
Section 5.4. Running the Build File
Section 5.5. Extending JUnit
Chapter 6. Getting Source Code from CVS Repositories
Section 6.1. Source Control and Ant
Section 6.2. Logging In
Section 6.3. Working with the Server
Section 6.4. Getting Version Data
Section 6.5. Creating Change Logs
Section 6.6. Finding Changes Between Versions
Section 6.7. Creating Patches
Chapter 7. Executing External Programs
Section 7.1. Executing Java Code
Section 7.2. Executing External Programs
Section 7.3. Performing Batch Execution
Section 7.4. Multithreading Tasks
Section 7.5. Setting Execution Order
Chapter 8. Developing for the Web
Section 8.1. Creating WAR Archives
Section 8.2. Creating CAB Files
Section 8.3. Creating Simple Web Deployment
Section 8.4. Deploying with SCP
Section 8.5. Deploying to Tomcat
Section 8.6. Deploying to Tomcat
Section 8.7. Compiling JSPs
Section 8.8. Deploying to EJB Containers
Chapter 9. XML and XDoclet
Section 9.1. Validating XML Documents
Section 9.2. Loading Properties from XML Files
Section 9.3. Creating Ant Task DTDs
Section 9.4. Transforming XML Using XSLT
Section 9.5. Using XDoclet
Section 9.6. Developing Enterprise JavaBeans
Chapter 10. Optional Tasks
Section 10.1. Using Sound
Section 10.2. Creating Splash Screens
Section 10.3. Subtituting Text Using Regular Expressions
Section 10.4. Handling Dependencies
Chapter 11. Integrating Ant with Eclipse
Section 11.1. Introducing Eclipse
Section 11.2. Running Ant Build Files
Section 11.3. Using a Different Version of Ant
Section 11.4. Using the Ant View
Chapter 12. Extending Ant
Section 12.1. Creating a Simple Custom Ant Task
Section 12.2. Extending the Task Class
Section 12.3. Creating Custom Listeners
Section 12.4. Creating Custom Loggers
Section 12.5. Creating Custom Filters
Section 12.6. Creating Custom Selectors
Section 12.7. Creating New Types
Welcome to Ant, today's premiere build tool. Ant is an extraordinary tool, and it fills a long-standing need among developers. No longer do you have to try to remember the 50 steps to build your project and make sure you do them in the right order or try to get finicky makefiles just right. Now you've got a true build tool that's genuinely easy to work withand outstandingly powerful. If you've never used Ant, you're in for a treat.
We're going to push the envelope in this book, working from the basics through the advanced, doing nearly everything that Ant can do. This book was designed to open up Ant and make it more accessible than any other book on the subject. It's a programmer-to-programmer book, written to make you an Ant pro without wasting time.
If you're a programmer, this book is written to give you exactly what you want to see, which is the good stuff and only the good stuff. There's as much Ant crammed into this book as you need to master the topic, and mastering Ant is the goal.