Common Debugging Techniques

The first step in fixing your Ant script is recognizing what went wrong and where it happened. In this regard, Ant is very helpful in letting you know where your errors occur, although it might still take some detective work to determine where things went wrong.

One of the techniques that you can use to help you determine where the error occurs is reading the error message until you understand it. Again, this might sound simple, but it sometimes takes me time to understand what the error message is really telling me. The next step is to read the documentation or inspect one or two working examples. Either of these steps might yield clues as to what went wrong. If at the end of this process, you’re still puzzled, it ...

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.