|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.alfresco.maven.plugin.amp.AbstractAmpMojo
org.alfresco.maven.plugin.amp.AmpMojo
public class AmpMojo
Build a amp/webapp.
Note this is a modification of Emmanuel Venisse's (evenisse@apache.org) WAR Mojo and has been adapted to build an Alfresco AMP.
| Field Summary |
|---|
| Fields inherited from class org.alfresco.maven.plugin.amp.AbstractAmpMojo |
|---|
archive, DEFAULT_FILE_NAME_MAPPING, DEFAULT_FILE_NAME_MAPPING_CLASSIFIER, mArchiverManager |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AmpMojo()
default constructor |
|
| Method Summary | |
|---|---|
void |
execute()
Executes the WarMojo on the current project. |
protected AmpArchiver |
getAmpArchiver()
get the the internal value for the ampArchiver property. |
protected static File |
getAmpFile(File pBasedir,
String pFinalName,
String pClassifier)
composes the full file name for the AMP and gets a file handle for that file TODO: what happens when nulls are passed in TODO: what does a null response mean? |
protected String |
getAmpName()
get the the internal value for the ampName property. |
protected String |
getClassifier()
Overload this to produce a test-war, for example. |
protected String |
getOutputDirectory()
get the the internal value for the outputDirectory property. |
protected org.apache.maven.project.MavenProjectHelper |
getProjectHelper()
get the the internal value for the projectHelper property. |
protected boolean |
isPrimaryArtifact()
get the the internal value for the primaryArtifact property. |
protected void |
performPackaging(File pAmpFile)
Generates the webapp according to the mode attribute. |
protected void |
setAmpArchiver(AmpArchiver pAmpArchiver)
set the internal value for the ampArchiver property |
protected void |
setAmpName(String pAmpName)
set the internal value for the ampName property |
protected void |
setClassifier(String pClassifier)
set the internal value for the classifier property |
protected void |
setOutputDirectory(String pOutputDirectory)
set the internal value for the outputDirectory property |
protected void |
setPrimaryArtifact(boolean pPrimaryArtifact)
set the internal value for the primaryArtifact property |
protected void |
setProjectHelper(org.apache.maven.project.MavenProjectHelper pProjectHelper)
set the internal value for the projectHelper property |
| 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 |
| Constructor Detail |
|---|
public AmpMojo()
| Method Detail |
|---|
protected AmpArchiver getAmpArchiver()
ampArchiver property.
The ampArchiver property
protected void setAmpArchiver(AmpArchiver pAmpArchiver)
ampArchiver property
pAmpArchiver - The ampArchiver to set.protected String getAmpName()
ampName property.
The ampName property
protected void setAmpName(String pAmpName)
ampName property
pAmpName - The ampName to set.protected String getOutputDirectory()
outputDirectory property.
The outputDirectory property
protected void setOutputDirectory(String pOutputDirectory)
outputDirectory property
pOutputDirectory - The outputDirectory to set.protected boolean isPrimaryArtifact()
primaryArtifact property.
The primaryArtifact property
protected void setPrimaryArtifact(boolean pPrimaryArtifact)
primaryArtifact property
pPrimaryArtifact - The primaryArtifact to set.protected org.apache.maven.project.MavenProjectHelper getProjectHelper()
projectHelper property.
The projectHelper property
protected void setProjectHelper(org.apache.maven.project.MavenProjectHelper pProjectHelper)
projectHelper property
pProjectHelper - The projectHelper to set.protected String getClassifier()
protected void setClassifier(String pClassifier)
classifier property
pClassifier - The classifier to set.
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - if an error occured while building the webapp
org.apache.maven.plugin.MojoFailureException
protected static File getAmpFile(File pBasedir,
String pFinalName,
String pClassifier)
pBaseDir - Base directory for AMPpFileName - Final Name of AMPpClassifier - TODO: fill this in
protected void performPackaging(File pAmpFile)
throws IOException,
org.codehaus.plexus.archiver.ArchiverException,
org.codehaus.plexus.archiver.jar.ManifestException,
org.apache.maven.artifact.DependencyResolutionRequiredException,
org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
pAmpFile - the target AMP file
IOException
org.codehaus.plexus.archiver.ArchiverException
org.codehaus.plexus.archiver.jar.ManifestException
org.apache.maven.artifact.DependencyResolutionRequiredException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||