Class SourcesJarGenerator
java.lang.Object
org.jdrupes.builder.core.AbstractProvider
org.jdrupes.builder.core.AbstractGenerator
org.jdrupes.builder.java.JarGenerator
org.jdrupes.builder.mvnrepo.SourcesJarGenerator
- All Implemented Interfaces:
Generator, ResourceProvider
A special JarGenerator that generates a sources jar following
the maven convention.
-
The content of the jar is obtained by requesting
FileTrees withJavaSourceFiles from the project's suppliers. -
The name of the jar is set to
<artifactId>-<version>-sources.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
ConstructorsConstructorDescriptionSourcesJarGenerator(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
-
SourcesJarGenerator
Initializes a new sources jar generator.- Parameters:
project- the project
-