org.alfresco.maven.plugin.amp.packaging
Class ClassesPackagingTask

java.lang.Object
  extended by org.alfresco.maven.plugin.amp.packaging.AbstractAmpPackagingTask
      extended by org.alfresco.maven.plugin.amp.packaging.ClassesPackagingTask
All Implemented Interfaces:
AmpPackagingTask

public class ClassesPackagingTask
extends AbstractAmpPackagingTask

Handles the classes directory that needs to be packaged in the web application.

Based on the AmpPackagingContext#archiveClasses() flag the resources either copied into to WEB-INF/classes directory or archived in a jar within the WEB-INF/lib directory.

Author:
Stephane Nicoll

Field Summary
 
Fields inherited from class org.alfresco.maven.plugin.amp.packaging.AbstractAmpPackagingTask
DEFAULT_INCLUDES, META_INF_PATH
 
Constructor Summary
ClassesPackagingTask()
           
 
Method Summary
protected  void generateJarArchive(AmpPackagingContext context)
           
 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

ClassesPackagingTask

public ClassesPackagingTask()
Method Detail

performPackaging

public void performPackaging(AmpPackagingContext context)
                      throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface: AmpPackagingTask
Performs the packaging for the specified task.

The task is responsible to update the packaging context, namely with the files that have been copied.

Parameters:
context - the packaging context
Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occured

generateJarArchive

protected void generateJarArchive(AmpPackagingContext context)
                           throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2009 Alfresco. All Rights Reserved.