Ant Message Levels

As described earlier, Ant supports five levels of messages. The default level is designed to deliver informational messages, warnings, and errors. The quiet flag causes Ant to only report on errors. The verbose flag results in more output, but it’s the debug flag that causes Ant to flood the screen with an abundance of information. This level of information is most helpful in debugging Ant build scripts. Let’s consider the output that Ant would produce from the script shown in Listing 7.4 when run in silent, normal, verbose, and debug modes. The demonstration is designed to accent the quantity and quality of information that is displayed when the debug flag is set.

Listing 7.4. Sample Ant Build Script
 <project name="antbook" ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.