public class WarProjectPackagingTask extends AbstractWarPackagingTask
CLASSES_PATH, DEFAULT_INCLUDES, LIB_PATH, META_INF_PATH, WEB_INF_PATH| Constructor and Description | 
|---|
| WarProjectPackagingTask(Resource[] webResources,
                       File webXml,
                       File containerConfigXml,
                       Overlay currentProjectOverlay) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | copyResources(WarPackagingContext context,
             Resource resource)Copies webapp webResources from the specified directory. | 
| protected void | handeWebAppSourceDirectory(WarPackagingContext context)Handles the webapp sources. | 
| protected void | handleArtifacts(WarPackagingContext context)Handles the webapp artifacts. | 
| protected void | handleClassesDirectory(WarPackagingContext context)Handles the webapp classes. | 
| protected void | handleDeploymentDescriptors(WarPackagingContext context,
                           File webinfDir,
                           File metainfDir)Handles the deployment descriptors, if specified. | 
| protected void | handleWebResources(WarPackagingContext context)Handles the web resources. | 
| void | performPackaging(WarPackagingContext context)Performs the packaging for the specified task. | 
copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes, getFilesToIncludespublic void performPackaging(WarPackagingContext context) throws MojoExecutionException, MojoFailureException
WarPackagingTaskcontext - the packaging contextMojoExecutionException - if an error occurredMojoFailureException - if the project configuration is invalidprotected void handleWebResources(WarPackagingContext context) throws MojoExecutionException
context - the packaging contextMojoExecutionException - if a resource could not be copiedprotected void handeWebAppSourceDirectory(WarPackagingContext context) throws MojoExecutionException
context - the packaging contextMojoExecutionException - if the sources could not be copiedprotected void handleArtifacts(WarPackagingContext context) throws MojoExecutionException
context - the packaging contextMojoExecutionException - if the artifacts could not be packagedprotected void handleClassesDirectory(WarPackagingContext context) throws MojoExecutionException
context - the packaging contextMojoExecutionException - if the classes could not be packagedprotected void handleDeploymentDescriptors(WarPackagingContext context, File webinfDir, File metainfDir) throws MojoFailureException, MojoExecutionException
context - the packaging contextwebinfDir - the web-inf directorymetainfDir - the meta-inf directoryMojoFailureException - if the web.xml is specified but does not existMojoExecutionException - if an error occurred while copying the descriptorspublic void copyResources(WarPackagingContext context, Resource resource) throws IOException, MojoExecutionException
context - the WAR packaging context to useresource - the resource to copyIOException - if an error occurred while copying the resourcesMojoExecutionException - if an error occurred while retrieving the filter propertiesCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.