Chapter 7. Troubleshooting Ant Build Scripts

An important aspect of any development process is debugging. In most cases, you’ll go through a number of coding and debug cycles. It shouldn’t come as a surprise that this statement also applies to the development of Ant build scripts. The good news is that it’s typically easier to debug an Ant build script than it is to debug application code. The bad news is that Ant lacks a runtime debugger, but it does come with the capability to set a debug flag on the command line. Setting the debug flag triggers Ant to generate a fairly verbose log of every step it takes. In addition to this, all the techniques that you’d normally use to debug an application can be used to debug Ant build scripts. If the simple ...

Get Ant Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.