|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.sun.enterprise.module.maven.PackageMojo
public class PackageMojo
Creates a jar with a special manifest entry.
Mostly copied from JarMojo. See http://jira.codehaus.org/browse/MNG-2789 why we can't rely on it.
| Field Summary | |
|---|---|
protected org.apache.maven.archiver.MavenArchiveConfiguration |
archive
The maven archive configuration to use. |
protected File |
classesDirectory
Directory containing the classes. |
protected String[] |
excludes
Ant glob patterns to be excluded from the jar file, like "**/*.bak" The base directory for the pattern is specified in classesDirectory. |
protected String |
finalName
Name of the generated JAR. |
protected org.codehaus.plexus.archiver.jar.JarArchiver |
jarArchiver
The Jar archiver. |
protected File |
outputDirectory
Directory containing the generated JAR. |
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected org.apache.maven.project.MavenProjectHelper |
projectHelper
|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
PackageMojo()
|
|
| Method Summary | |
|---|---|
File |
createArchive()
Generates the JAR. |
void |
execute()
Generates the JAR. |
protected static File |
getJarFile(File basedir,
String finalName)
|
protected org.apache.maven.project.MavenProject |
getProject()
|
| 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 File outputDirectory
protected String finalName
protected org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.archiver.MavenArchiveConfiguration archive
protected org.apache.maven.project.MavenProjectHelper projectHelper
protected File classesDirectory
protected String[] excludes
classesDirectory.
| Constructor Detail |
|---|
public PackageMojo()
| Method Detail |
|---|
protected final org.apache.maven.project.MavenProject getProject()
protected static File getJarFile(File basedir,
String finalName)
public File createArchive()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||