org.apache.maven.plugin.war.packaging
Class ClassesPackagingTask
java.lang.Object
org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask
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.java 985593 2010-08-14 22:12:09Z dennisl $
- Author:
- Stephane Nicoll
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassesPackagingTask
public ClassesPackagingTask(Overlay currentProjectOverlay)
performPackaging
public void performPackaging(WarPackagingContext context)
throws org.apache.maven.plugin.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:
org.apache.maven.plugin.MojoExecutionException
- if an error occurred
generateJarArchive
protected void generateJarArchive(WarPackagingContext context)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.