Class Javadoc

All Implemented Interfaces:
Generator, Renamable, ResourceProvider

public class Javadoc extends JavaTool

The Javadoc generator provides the resource JavadocDirectory, a directory that contains generated javadoc files.

No attempt is made to define dedicated types for Javadoc tool options. Instead, options are passed as strings, as suggested by the ToolProvider API. Notable exceptions exist for options that are directly related to resource types (such as files, directory trees, and paths) originating from the builder context.

By default, the generator builds the Javadoc for the project passed to the constructor. In some cases – such as generating a shared Javadoc for multiple projects – this behavior is not desired. In these cases, the project(s) for which Javadoc is generated can be configured via projects.

By default, the processed sources are the project's JavaSourceFiles, i.e. the resources obtained by invoking resources for type JavaTypes.JavaSourceTreeType on the configured project(s). This behavior can be overridden by setting the sources explicitly using one or more invocations of the addSources methods.