Home > Store

Extreme Programming with Ant: Building and Deploying Java Applications with JSP, EJB, XSLT, XDoclet, and JUnit

Extreme Programming with Ant: Building and Deploying Java Applications with JSP, EJB, XSLT, XDoclet, and JUnit

eBook (Adobe DRM)

  • Sorry, this book is no longer in print.
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:

    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.
Not for Sale

Also available in other formats.

Register your product to gain access to bonus material or receive a coupon.


  • Copyright 2003
  • Dimensions: 7-3/8" x 9-1/8"
  • Pages: 456
  • Edition: 1st
  • eBook (Adobe DRM)
  • ISBN-10: 0-7686-6273-7
  • ISBN-13: 978-0-7686-6273-3

From the Back Cover:

You¿ve heard about Extreme Programming. You might have read articles or books describing the XP process, but what next? How do you implement XP principles into an actual Java project? This unique book explains everything you need for XP development, starting with Ant, the popular Java build tool. The authors describe every stage of a real-world project life cycle¿testing, refactoring, versioning, deployment, and more¿with practical examples that you can immediately put to use in your own projects.

Every aspect of an XP project includes unique challenges, and Extreme Programming with Ant works through each step of the process.

  • Mitigate risks by creating spike tests with Ant buildfiles
  • Add version control and testing with JUnit
  • Automate nightly builds and reporting
  • Deploy applications dynamically using XDoclet
  • Add additional team members after a project is underway
  • Write custom Ant components to facilitate deployment
  • Adapt an XP process for use by other teams or across an enterprise

Throughout the book, the authors include dozens of ideas for extending Ant with useful custom features such as generating UML diagrams and creating reports and metrics on-the-fly. All code and examples have been built, tested, and deployed using Ant 1.5.3.

Sample Content

Table of Contents


1. XP and Ant.

What Is XP? The XP Process. Ant and the XP Process. Summary. The Scope of This Book.

2. Creating Initial Spikes.

Introduction to Ant. Elements of a Buildfile. Ant Command-Line Options. A Basic Project-Management Buildfile. Using Properties. Target Dependencies. Directory-Based Tasks. Adding the backupAdvanced Target. Summary.

3. The First Iteration.

Benefits of Automated Testing. Benefits of Integrating Testing into Ant. Types of Automated Testing. What Is Unit Testing? Test First Design. Junit. Version-Control Systems. CVS Access and Logins. Basic Deployment. Summary.

4. The First Complete Build Process.

Generating Documentation. Batchtest. Advanced JUnit Target. CleanImports. Summary.

5. Creating the Automated Nightly Build.

Loggers and Listeners. Filemappers. Filtersets. Path-like Structures. Nightly Build JUnit Target. JunitReport. Reports on Sets of Tests. CruiseControl. Summary.

6. Deployment to a Test Environment.

Working with JAR Files. Deploying Applications as WAR Files. Deployment with Xdoclet. Creating an EAR File with the <ear> Task. Summary.

7. The Team Size Increases.

Why Have Coding Standards? Enforcing Coding Standards. Jalopy. PMD. Checkstyle. IContract. Jdepend. Summary.

8. Deployment to a Production Environment.

CVS Reporting. Creating Technical Release Notes from CVS Comments. Advanced Version Control Techniques for Ant. Performing a Distributed Deployment with Remote Ant. Deploying Information to Databases. Summary.

9. Company Reorganized-Working with a New Subteam.

NetBeans IDE and Ant. Styler. Using the <tempfile> and <purge> Tasks. AntEater. Custom Task for Detection of Missing Unit Tests. Ant's Bean Scripting Framework Capability. Summary.

10. Additional Teams Adopt the XP Process.

Creating a Project-Level Buildfile. Using Jikes for Dependency Checking. Writing a Custom Task for NoUnit. Increasing the Efficiency of Code Generation. Creating Unique Build Numbers. Obfuscating JAR Files. Summary.

11. Creating an Enterprise-wide Solution.

Encrypting the Output of a Build. Incorporating JUnit into the Build Process. Adding Targets to Control a WebLogic Server. Internationalization. Generating UML Diagrams. Summary. Appendices.

Appendix A. Installing Ant.

Choosing the Correct Edition of Ant. Obtaining Ant. Building Ant. Installing Ant. Debugging Your Installation.

Appendix B. Extending Ant.

Custom Tasks. Custom Listeners. Custom Loggers. Some Principles for Developing Custom Tasks, Loggers, Input Handlers. Selectors. Filters. Mappers. Data Types. Summary.

Appendix C. Ant 2

Reasons for the Change. Differences Between Ant 1 and Ant 2. Transitioning to Ant 2.

Appendix D. Complete Buildfile Listings.

eMarket Team Buildfile. iNet Team Buildfile. eSupplier Team Buildfile. Sales Department Buildfile. Network Department Buildfile. NetworksByteDesign Common Buildfile.

Appendix E. Tool Version.

Development and Testing Platforms. Tool Versions. Index.


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership