Description
Book SynopsisAs the most widely used tool for cross-platform development, Ant has undergone a number of important changes in its functionality and use since its launch. 'Ant: The Definitive Guide second edition, has been reworked to reflect these changes for Java developers everywhere. Topics covered include using Ant to test code.
Table of ContentsPreface; 1. Getting Started; Ant's Origins; Getting Ant; Ant at Work; Anatomy of a Build File; Running Ant; 2. Using Properties and Types; Using Properties to Control Tasks; Using Property Files; Handling Data Using Types; 3. Building Java Code; Compiling Code; Getting Input from the User; Calling Other Ant Tasks; Importing Other Build Files; Documenting Code; Creating JAR Files; Setting Build Numbers; Setting Timestamps; 4. Deploying Builds; Packaging Applications for Deployment; Preparing to Deploy; Deploying Applications; Scheduling Automatic Builds; 5. Testing Builds with JUnit; Using JUnit; Running Test Cases; Testing in Batches; Running the Build File; Extending JUnit; 6. Getting Source Code from CVS Repositories; Source Control and Ant; Logging In; Working with the Server; Getting Version Data; Creating Change Logs; Finding Changes Between Versions; Creating Patches; 7. Executing External Programs; Executing Java Code; Executing External Programs; Performing Batch Execution; Multithreading Tasks; Setting Execution Order; 8. Developing for the Web; Creating WAR Archives; Creating CAB Files; Creating Simple Web Deployment; Deploying with SCP; Deploying to Tomcat; Compiling JSPs; Deploying to EJB Containers; 9. XML and XDoclet; Validating XML Documents; Loading Properties from XML Files; Creating Ant Task DTDs; Transforming XML Using XSLT; Using XDoclet; Developing Enterprise JavaBeans; 10. Optional Tasks; Using Sound; Creating Splash Screens; Subtituting Text Using Regular Expressions; Handling Dependencies; 11. Integrating Ant with Eclipse; Introducing Eclipse; Running Ant Build Files; Using a Different Version of Ant; Using the Ant View; 12. Extending Ant; Creating a Simple Custom Ant Task; Extending the Task Class; Creating Custom Listeners; Creating Custom Loggers; Creating Custom Filters; Creating Custom Selectors; Creating New Types; Index