Generating Javadoc with Ant

You can also generate your Javadoc using the Ant utility. Ant is available as a free download from http://ant.apache.org. The current version, as of this publication, is 1.6.1. Ant is used like the make tool to automate the software build process. It offers an XML syntax featuring tags that, among other things, wrap common Java tools, including the javadoc command.

While in this section it is not appropriate to go into the Ant tool in detail, my assumption here is that this will serve as a useful—if quick—reference later when you want to generate Javadoc using Ant.

If you are using Eclipse (3.0 is the current version), you already have Ant installed with it. All you need to do is create a file (conventionally called ...

Get Java Garage 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.