org.apache.maven.plugin.war.packaging
Class ClassesPackagingTask

java.lang.Object
  extended by org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask
      extended by org.apache.maven.plugin.war.packaging.ClassesPackagingTask
All Implemented Interfaces:
WarPackagingTask

public class ClassesPackagingTask
extends AbstractWarPackagingTask

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

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

Version:
$Id: ClassesPackagingTask.html 868453 2013-07-05 11:25:41Z olamy $
Author:
Stephane Nicoll

Field Summary
 
Fields inherited from class org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask
CLASSES_PATH, DEFAULT_INCLUDES, LIB_PATH, META_INF_PATH, WEB_INF_PATH
 
Constructor Summary
ClassesPackagingTask(Overlay currentProjectOverlay)
           
 
Method Summary
protected  void generateJarArchive(WarPackagingContext context)
           
 void performPackaging(WarPackagingContext context)
          Performs the packaging for the specified task.
 
Methods inherited from class org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask
copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes, getFilesToIncludes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassesPackagingTask

public ClassesPackagingTask(Overlay currentProjectOverlay)
Method Detail

performPackaging

public void performPackaging(WarPackagingContext context)
                      throws MojoExecutionException
Description copied from interface: WarPackagingTask
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:
MojoExecutionException - if an error occurred

generateJarArchive

protected void generateJarArchive(WarPackagingContext context)
                           throws MojoExecutionException
Throws:
MojoExecutionException


Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.