|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.source.AbstractJarSourceMojo
public abstract class AbstractJarSourceMojo
Field Summary | |
---|---|
protected String |
finalName
The filename to be used for the generated archive file. |
protected File |
outputDirectory
The directory where the generated archive file will be put. |
protected String |
packaging
|
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractJarSourceMojo()
|
Method Summary | |
---|---|
protected File[] |
addDirectories(List compileSourceRoots,
List resources,
File[] sourceDirectories)
Add the compile source directories and resource directories that will be included in the jar file |
protected void |
attachArtifact(File outputFile,
String classifier)
Method to attach generated artifact to artifact list |
protected org.codehaus.plexus.archiver.Archiver |
createArchiver()
|
protected void |
createJar(File outputFile,
File[] sourceDirectories,
org.codehaus.plexus.archiver.Archiver archiver)
Create jar file that contains the specified source directories |
abstract void |
execute()
|
protected File[] |
getDefaultSources()
Get the main sources that will be included in the jar file |
org.apache.maven.project.MavenProject |
getExecutedProject()
|
String |
getPackaging()
|
org.apache.maven.project.MavenProject |
getProject()
|
protected File[] |
getTestSources()
Get the test sources that will be included in the test sources jar file |
protected void |
makeSourceBundle(File outputFile,
File[] sourceDirectories,
org.codehaus.plexus.archiver.Archiver archiver)
Method to create an archive of the specified files |
void |
setExecutedProject(org.apache.maven.project.MavenProject executedProject)
|
void |
setPackaging(String packaging)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
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 String packaging
protected File outputDirectory
protected String finalName
Constructor Detail |
---|
public AbstractJarSourceMojo()
Method Detail |
---|
public abstract void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Mojo.execute()
public org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
public String getPackaging()
public void setPackaging(String packaging)
public org.apache.maven.project.MavenProject getExecutedProject()
public void setExecutedProject(org.apache.maven.project.MavenProject executedProject)
protected File[] addDirectories(List compileSourceRoots, List resources, File[] sourceDirectories)
compileSourceRoots
- resources
- sourceDirectories
-
protected File[] getTestSources()
protected File[] getDefaultSources()
protected void createJar(File outputFile, File[] sourceDirectories, org.codehaus.plexus.archiver.Archiver archiver) throws IOException, org.codehaus.plexus.archiver.ArchiverException
outputFile
- the file name of the jarsourceDirectories
- the source directories that will be included in the jar file
IOException
org.codehaus.plexus.archiver.ArchiverException
protected void attachArtifact(File outputFile, String classifier)
outputFile
- the artifact file to be attachedclassifier
- protected void makeSourceBundle(File outputFile, File[] sourceDirectories, org.codehaus.plexus.archiver.Archiver archiver) throws org.codehaus.plexus.archiver.ArchiverException, IOException
outputFile
- the destination file of the generated archivesourceDirectories
- the directory where the files to be archived are locatedarchiver
- the archiver object that will create the archive
org.codehaus.plexus.archiver.ArchiverException
IOException
protected org.codehaus.plexus.archiver.Archiver createArchiver() throws org.codehaus.plexus.archiver.ArchiverException
org.codehaus.plexus.archiver.ArchiverException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |