Class JavadocJarGenerator
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.java.JarGenerator
org.jdrupes.builder.mvnrepo.JavadocJarGenerator
- All Implemented Interfaces:
Generator, ResourceProvider
A special JarGenerator 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.
-
Field Summary
Fields inherited from class AbstractProvider
log -
Constructor Summary
ConstructorsConstructorDescriptionJavadocJarGenerator(Project project) Initializes a new sources jar generator. -
Method Summary
Methods inherited from class JarGenerator
add, add, addEntries, addTrees, attributes, attributes, buildJar, collect, collectContents, destination, destination, destination, doProvide, jarName, jarName, jarName, resolveDuplicatesMethods inherited from class AbstractGenerator
cleanup, name, name, newResource, project, toStringMethods inherited from class AbstractProvider
provideMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ResourceProvider
provide
-
Constructor Details
-
JavadocJarGenerator
Initializes a new sources jar generator.- Parameters:
project- the project
-