Class JavadocJarGenerator
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.java.JarBuilder
org.jdrupes.builder.mvnrepo.JavadocJarGenerator
- All Implemented Interfaces:
Generator, Renamable, ResourceProvider
A special JarBuilder that generates a jar with javadoc.
-
The content of the jar is obtained by requesting resources of type
JavadocDirectoryfrom the project's suppliers and using each as root for aFileTree, 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 propertyMvnProperties.ArtifactIdwith a fallback to the project's name.<version>is the value of the project's propertyProject.Properties.Version.
-
Constructor Summary
ConstructorsConstructorDescriptionJavadocJarGenerator(Project project) Initializes a new sources jar generator. -
Method Summary
Methods inherited from class JarBuilder
add, add, add, add, addAttributeValues, addEntries, addManifestAttributes, addTrees, attributes, buildJar, collect, collectContents, destination, destination, destination, doProvide, jarName, jarName, jarName, name, resolveDuplicatesMethods inherited from class AbstractGenerator
cleanup, newResource, project, toStringMethods inherited from class AbstractProvider
context, name, of, rename, vavrStream
-
Constructor Details
-
JavadocJarGenerator
Initializes a new sources jar generator.- Parameters:
project- the project
-