|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.tycho.source.AbstractSourceJarMojo
public abstract class AbstractSourceJarMojo
Base class for bundling sources into a jar archive.
| Field Summary | |
|---|---|
protected boolean |
excludeResources
Specifies whether or not to exclude resources from the sources-jar. |
protected java.lang.String |
finalName
The filename to be used for the generated archive file. |
protected boolean |
includePom
Specifies whether or not to include the POM file in the sources-jar. |
protected java.io.File |
outputDirectory
The directory where the generated archive file will be put. |
protected org.apache.maven.project.MavenProject |
project
The Maven Project Object |
protected java.util.List |
reactorProjects
Contains the full list of projects in the reactor. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractSourceJarMojo()
|
|
| Method Summary | |
|---|---|
protected void |
addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String[] includes,
java.lang.String[] excludes)
|
protected void |
addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String prefix,
java.lang.String[] includes,
java.lang.String[] excludes)
|
protected void |
archiveProjectContent(org.apache.maven.project.MavenProject p,
org.codehaus.plexus.archiver.Archiver archiver)
|
protected org.apache.maven.archiver.MavenArchiver |
createArchiver()
|
void |
execute()
|
protected abstract java.lang.String |
getClassifier()
|
protected java.lang.String |
getExtension()
|
protected org.apache.maven.project.MavenProject |
getProject(org.apache.maven.project.MavenProject p)
|
protected abstract java.util.List |
getResources(org.apache.maven.project.MavenProject p)
|
protected abstract java.util.List |
getSources(org.apache.maven.project.MavenProject p)
|
protected java.lang.String |
getType()
|
protected abstract boolean |
isRelevantProject(org.apache.maven.project.MavenProject p)
|
protected void |
packageSources(java.util.List projects)
|
protected void |
packageSources(org.apache.maven.project.MavenProject p)
|
protected void |
updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration)
|
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected boolean excludeResources
protected boolean includePom
protected java.io.File outputDirectory
protected java.lang.String finalName
protected java.util.List reactorProjects
| Constructor Detail |
|---|
public AbstractSourceJarMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract java.lang.String getClassifier()
sources or test-sources
protected abstract java.util.List getSources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
p - not null
org.apache.maven.plugin.MojoExecutionException
protected abstract java.util.List getResources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
p - not null
org.apache.maven.plugin.MojoExecutionException
protected void packageSources(org.apache.maven.project.MavenProject p)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected abstract boolean isRelevantProject(org.apache.maven.project.MavenProject p)
protected void packageSources(java.util.List projects)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void updateSourceManifest(org.apache.maven.archiver.MavenArchiveConfiguration mavenArchiveConfiguration)
protected void archiveProjectContent(org.apache.maven.project.MavenProject p,
org.codehaus.plexus.archiver.Archiver archiver)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.archiver.MavenArchiver createArchiver()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String[] includes,
java.lang.String[] excludes)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void addDirectory(org.codehaus.plexus.archiver.Archiver archiver,
java.io.File sourceDirectory,
java.lang.String prefix,
java.lang.String[] includes,
java.lang.String[] excludes)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected java.lang.String getExtension()
protected org.apache.maven.project.MavenProject getProject(org.apache.maven.project.MavenProject p)
protected java.lang.String getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||