Class JavadocJarGenerator

All Implemented Interfaces:
Generator, ResourceProvider

public class JavadocJarGenerator extends JarGenerator

A special JarGenerator that generates a jar with javadoc.

  • The content of the jar is obtained by requesting resources of type JavadocDirectory from the project's suppliers and using each as root for a FileTree, which is then added to the jar.

  • The name of the jar is set to <artifactId>-<version>-javadoc.jar, where <artifactId> is the value of the project's property MvnProperties.ArtifactId with a fallback to the project's name. <version> is the value of the project's property Project.Properties.Version.

  • Constructor Details

    • JavadocJarGenerator

      public JavadocJarGenerator(Project project)
      Initializes a new sources jar generator.
      Parameters:
      project - the project