Class OverlayPackagingTask
java.lang.Object
org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
org.apache.maven.plugins.war.packaging.OverlayPackagingTask
- All Implemented Interfaces:
WarPackagingTask
Handles an overlay.
- Author:
- Stephane Nicoll
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected FilegetOverlayTempDirectory(WarPackagingContext context, Overlay overlay) Returns the directory to use to unpack the specified overlay.voidperformPackaging(WarPackagingContext context) Performs the packaging for the specified task.protected FileunpackOverlay(WarPackagingContext context, Overlay overlay) Unpacks the specified overlay.Methods inherited from class org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask
copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes, getFilesToIncludes
-
Constructor Details
-
OverlayPackagingTask
- Parameters:
overlay-overlaycurrentProjectOverlay- current overlay.
-
-
Method Details
-
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
-
unpackOverlay
protected File unpackOverlay(WarPackagingContext context, Overlay overlay) throws org.apache.maven.plugin.MojoExecutionException Unpacks the specified overlay. Makes sure to skip the unpack process if the overlay has already been unpacked.- Parameters:
context- the packaging contextoverlay- the overlay- Returns:
- the directory containing the unpacked overlay
- Throws:
org.apache.maven.plugin.MojoExecutionException- if an error occurred while unpacking the overlay
-
getOverlayTempDirectory
Returns the directory to use to unpack the specified overlay.- Parameters:
context- the packaging contextoverlay- the overlay- Returns:
- the temp directory for the overlay
-