Class ClassesPackagingTask
- java.lang.Object
-
- org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
-
- org.apache.maven.plugins.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 theWarPackagingContext.archiveClasses()flag, the resources are either copied into toWEB-INF/classesdirectory or archived in a jar within theWEB-INF/libdirectory.
-
-
Field Summary
Fields Modifier and Type Field Description private OverlaycurrentProjectOverlay-
Fields inherited from class org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
CLASSES_PATH, DEFAULT_INCLUDES, LIB_PATH, META_INF_PATH, WEB_INF_PATH
-
-
Constructor Summary
Constructors Constructor Description ClassesPackagingTask(Overlay currentProjectOverlay)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgenerateJarArchive(WarPackagingContext context)voidperformPackaging(WarPackagingContext context)Performs the packaging for the specified task.-
Methods inherited from class org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
copyFile, copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes, getFilesToIncludes
-
-
-
-
Field Detail
-
currentProjectOverlay
private final Overlay currentProjectOverlay
-
-
Constructor Detail
-
ClassesPackagingTask
public ClassesPackagingTask(Overlay currentProjectOverlay)
- Parameters:
currentProjectOverlay-currentProjectOverlay
-
-
Method Detail
-
performPackaging
public void performPackaging(WarPackagingContext context) throws org.apache.maven.plugin.MojoExecutionException
Description copied from interface:WarPackagingTaskPerforms 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
- Parameters:
context- the warPackingContext- Throws:
org.apache.maven.plugin.MojoExecutionException- in case of an error
-
-