|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.alfresco.maven.plugin.amp.AbstractAmpMojo
public abstract class AbstractAmpMojo
Field Summary | |
---|---|
protected org.apache.maven.archiver.MavenArchiveConfiguration |
archive
The maven archive configuration to use. |
static String |
DEFAULT_FILE_NAME_MAPPING
|
static String |
DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
|
protected org.codehaus.plexus.archiver.manager.ArchiverManager |
mArchiverManager
To look up Archiver/UnArchiver implementations |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractAmpMojo()
|
Method Summary | |
---|---|
void |
addOverlay(Overlay overlay)
|
void |
buildAmp(org.apache.maven.project.MavenProject project,
File webappDirectory)
Builds the webapp for the specified project with the new packaging task thingy Classes, libraries and tld files are copied to the webappDirectory during this phase. |
void |
buildExplodedAmp(File webappDirectory)
|
File |
getAmpDirectory()
|
String |
getAmpJarExcludes()
|
org.apache.maven.model.Resource[] |
getAmpResources()
|
File |
getAmpSourceDirectory()
|
File |
getCacheFile()
|
File |
getClassesDirectory()
|
protected String[] |
getDependentAmpExcludes()
Returns a string array of the excludes to be used when adding dependent AMPs as an overlay onto this AMP. |
protected String[] |
getDependentAmpIncludes()
Returns a string array of the includes to be used when adding dependent AMP as an overlay onto this AMP. |
protected String[] |
getExcludes()
Returns a string array of the classes and resources to be excluded from the jar excludes to be used when assembling/copying the AMP. |
List |
getFilters()
|
protected String[] |
getIncludes()
Returns a string array of the classes and resources to be included from the jar assembling/copying the war. |
org.codehaus.plexus.archiver.jar.JarArchiver |
getJarArchiver()
|
String |
getOutputFileNameMapping()
|
List |
getOverlays()
|
org.apache.maven.project.MavenProject |
getProject()
|
protected String[] |
getWebExcludes()
Returns a string array of the resources to be excluded in the AMP web/ folder. |
protected String[] |
getWebIncludes()
Returns a string array of the resources to be included in the AMP web/ folder. |
File |
getWebXml()
|
File |
getWorkDirectory()
|
boolean |
isUseCache()
|
void |
setAmpDirectory(File webappDirectory)
|
void |
setAmpJarExcludes(String ampJarExcludes)
|
void |
setAmpResources(org.apache.maven.model.Resource[] webResources)
|
void |
setAmpSourceDirectory(File ampSourceDirectory)
|
void |
setAmpSourceIncludes(String ampSourceIncludes)
|
void |
setCacheFile(File cacheFile)
|
void |
setClassesDirectory(File classesDirectory)
|
void |
setFilters(List filters)
|
void |
setJarArchiver(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver)
|
void |
setOutputFileNameMapping(String outputFileNameMapping)
|
void |
setOverlays(List overlays)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setUseCache(boolean useCache)
|
void |
setWebXml(File webXml)
|
void |
setWorkDirectory(File workDirectory)
|
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
protected org.codehaus.plexus.archiver.manager.ArchiverManager mArchiverManager
public static final String DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
public static final String DEFAULT_FILE_NAME_MAPPING
protected org.apache.maven.archiver.MavenArchiveConfiguration archive
Constructor Detail |
---|
public AbstractAmpMojo()
Method Detail |
---|
protected String[] getExcludes()
protected String[] getIncludes()
protected String[] getWebIncludes()
protected String[] getWebExcludes()
protected String[] getDependentAmpExcludes()
protected String[] getDependentAmpIncludes()
public void buildExplodedAmp(File webappDirectory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void buildAmp(org.apache.maven.project.MavenProject project, File webappDirectory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException
project
- the maven projectwebappDirectory
- the target directory
org.apache.maven.plugin.MojoExecutionException
- if an error occured while packaging the webapp
org.apache.maven.plugin.MojoFailureException
- if an unexpected error occured while packaging the webapp
IOException
- if an error occured while copying the filespublic org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
public File getClassesDirectory()
public void setClassesDirectory(File classesDirectory)
public File getAmpDirectory()
public void setAmpDirectory(File webappDirectory)
public File getAmpSourceDirectory()
public void setAmpSourceDirectory(File ampSourceDirectory)
public File getWebXml()
public void setWebXml(File webXml)
public String getOutputFileNameMapping()
public void setOutputFileNameMapping(String outputFileNameMapping)
public List getOverlays()
public void setOverlays(List overlays)
public void addOverlay(Overlay overlay)
public org.codehaus.plexus.archiver.jar.JarArchiver getJarArchiver()
public void setJarArchiver(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver)
public org.apache.maven.model.Resource[] getAmpResources()
public void setAmpResources(org.apache.maven.model.Resource[] webResources)
public List getFilters()
public void setFilters(List filters)
public File getWorkDirectory()
public void setWorkDirectory(File workDirectory)
public File getCacheFile()
public void setCacheFile(File cacheFile)
public void setAmpSourceIncludes(String ampSourceIncludes)
public String getAmpJarExcludes()
public void setAmpJarExcludes(String ampJarExcludes)
public boolean isUseCache()
public void setUseCache(boolean useCache)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |