|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask org.apache.maven.plugin.war.packaging.WarProjectPackagingTask
public class WarProjectPackagingTask
Handles the project own resources, that is:
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 | |
---|---|
WarProjectPackagingTask(Resource[] webResources,
File webXml,
File containerConfigXml,
Overlay currentProjectOverlay)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask |
---|
copyFile, copyFile, copyFiles, copyFiles, copyFilteredFile, doUnpack, getArtifactFinalName, getEncoding, getFilesToIncludes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WarProjectPackagingTask(Resource[] webResources, File webXml, File containerConfigXml, Overlay currentProjectOverlay)
Method Detail |
---|
public void performPackaging(WarPackagingContext context) throws MojoExecutionException, MojoFailureException
WarPackagingTask
context
- the packaging context
MojoExecutionException
- if an error occurred
MojoFailureException
- if the project configuration is invalidprotected void handleWebResources(WarPackagingContext context) throws MojoExecutionException
context
- the packaging context
MojoExecutionException
- if a resource could not be copiedprotected void handeWebAppSourceDirectory(WarPackagingContext context) throws MojoExecutionException
context
- the packaging context
MojoExecutionException
- if the sources could not be copiedprotected void handleArtifacts(WarPackagingContext context) throws MojoExecutionException
context
- the packaging context
MojoExecutionException
- if the artifacts could not be packagedprotected void handleClassesDirectory(WarPackagingContext context) throws MojoExecutionException
context
- the packaging context
MojoExecutionException
- 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 directory
MojoFailureException
- if the web.xml is specified but does not exist
MojoExecutionException
- 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 copy
IOException
- if an error occurred while copying the resources
MojoExecutionException
- if an error occurred while retrieving the filter properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |