|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alfresco.maven.plugin.amp.packaging.AbstractAmpPackagingTask org.alfresco.maven.plugin.amp.packaging.AmpProjectPackagingTask
public class AmpProjectPackagingTask
Handles the project own resources, that is:
Field Summary |
---|
Fields inherited from class org.alfresco.maven.plugin.amp.packaging.AbstractAmpPackagingTask |
---|
DEFAULT_INCLUDES, META_INF_PATH |
Constructor Summary | |
---|---|
AmpProjectPackagingTask(org.apache.maven.model.Resource[] webResource,
File moduleProperties)
|
Method Summary | |
---|---|
void |
copyResources(AmpPackagingContext context,
org.apache.maven.model.Resource resource)
Copies webapp webResources from the specified directory. |
protected void |
handeAmpConfigDirectory(AmpPackagingContext context)
Handles the webapp sources. |
protected void |
handeWebAppSourceDirectory(AmpPackagingContext context)
Handles the webapp sources. |
protected void |
handleArtifacts(AmpPackagingContext context)
Handles the webapp artifacts. |
protected void |
handleClassesDirectory(AmpPackagingContext context)
Handles the webapp classes. |
protected void |
handleDeploymentDescriptors(AmpPackagingContext context)
Handles the deployment descriptors, if specified. |
protected void |
handleWebResources(AmpPackagingContext context)
Handles the web resources. |
void |
performPackaging(AmpPackagingContext context)
Performs the packaging for the specified task. |
Methods inherited from class org.alfresco.maven.plugin.amp.packaging.AbstractAmpPackagingTask |
---|
copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getFilesToIncludes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AmpProjectPackagingTask(org.apache.maven.model.Resource[] webResource, File moduleProperties)
Method Detail |
---|
public void performPackaging(AmpPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
AmpPackagingTask
context
- the packaging context
org.apache.maven.plugin.MojoExecutionException
- if an error occured
org.apache.maven.plugin.MojoFailureException
- if the project configuration is invalidprotected void handleWebResources(AmpPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException
context
- the packaging context
org.apache.maven.plugin.MojoExecutionException
- if a resource could not be copiedprotected void handeWebAppSourceDirectory(AmpPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException
context
- the packaging context
org.apache.maven.plugin.MojoExecutionException
- if the sources could not be copiedprotected void handeAmpConfigDirectory(AmpPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException
context
- the packaging context
org.apache.maven.plugin.MojoExecutionException
- if the sources could not be copiedprotected void handleArtifacts(AmpPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException
context
- the packaging context
org.apache.maven.plugin.MojoExecutionException
- if the artifacts could not be packagedprotected void handleClassesDirectory(AmpPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException
context
- the packaging context
org.apache.maven.plugin.MojoExecutionException
- if the classes could not be packagedprotected void handleDeploymentDescriptors(AmpPackagingContext context) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
context
- the packaging contextwebinfDir
- the web-inf directorymetainfDir
- the meta-inf directory
org.apache.maven.plugin.MojoFailureException
- if the web.xml is specified but does not exist
org.apache.maven.plugin.MojoExecutionException
- if an error occured while copying the descriptorspublic void copyResources(AmpPackagingContext context, org.apache.maven.model.Resource resource) throws IOException, org.apache.maven.plugin.MojoExecutionException
context
- the war packaging context to useresource
- the resource to copy
IOException
- if an error occured while copying the resources
org.apache.maven.plugin.MojoExecutionException
- if an error occured while retrieving the filter properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |