|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(org.apache.maven.model.Resource[] webResources,
File webXml,
File containerConfigXml,
Overlay currentProjectOverlay)
|
|
| Method Summary | |
|---|---|
void |
copyResources(WarPackagingContext context,
org.apache.maven.model.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, getFilesToIncludes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WarProjectPackagingTask(org.apache.maven.model.Resource[] webResources,
File webXml,
File containerConfigXml,
Overlay currentProjectOverlay)
| Method Detail |
|---|
public void performPackaging(WarPackagingContext context)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
WarPackagingTask
context - the packaging context
org.apache.maven.plugin.MojoExecutionException - if an error occurred
org.apache.maven.plugin.MojoFailureException - if the project configuration is invalid
protected void handleWebResources(WarPackagingContext context)
throws org.apache.maven.plugin.MojoExecutionException
context - the packaging context
org.apache.maven.plugin.MojoExecutionException - if a resource could not be copied
protected void handeWebAppSourceDirectory(WarPackagingContext context)
throws org.apache.maven.plugin.MojoExecutionException
context - the packaging context
org.apache.maven.plugin.MojoExecutionException - if the sources could not be copied
protected void handleArtifacts(WarPackagingContext context)
throws org.apache.maven.plugin.MojoExecutionException
context - the packaging context
org.apache.maven.plugin.MojoExecutionException - if the artifacts could not be packaged
protected void handleClassesDirectory(WarPackagingContext context)
throws org.apache.maven.plugin.MojoExecutionException
context - the packaging context
org.apache.maven.plugin.MojoExecutionException - if the classes could not be packaged
protected void handleDeploymentDescriptors(WarPackagingContext context,
File webinfDir,
File metainfDir)
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
context - the packaging contextwebinfDir - the web-inf directorymetainfDir - the meta-inf directory
org.apache.maven.plugin.MojoFailureException - if the web.xml is specified but does not exist
org.apache.maven.plugin.MojoExecutionException - if an error occurred while copying the descriptors
public void copyResources(WarPackagingContext context,
org.apache.maven.model.Resource resource)
throws IOException,
org.apache.maven.plugin.MojoExecutionException
context - the WAR packaging context to useresource - the resource to copy
IOException - if an error occurred while copying the resources
org.apache.maven.plugin.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 | |||||||||