org.apache.maven.plugin.war
Class AbstractWarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.war.AbstractWarMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- WarExplodedMojo, WarInPlaceMojo, WarManifestMojo, WarMojo
public abstract class AbstractWarMojo
- extends org.apache.maven.plugin.AbstractMojo
Contains commons jobs for war mojos
- Version:
- $Id: AbstractWarMojo.java 682924 2008-08-05 20:16:53Z hboutemy $
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
public static final java.lang.String DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
- See Also:
- Constant Field Values
DEFAULT_FILE_NAME_MAPPING
public static final java.lang.String DEFAULT_FILE_NAME_MAPPING
- See Also:
- Constant Field Values
AbstractWarMojo
public AbstractWarMojo()
getExcludes
protected java.lang.String[] getExcludes()
- Returns a string array of the excludes to be used
when copying the content of the war source directory.
- Returns:
- an array of tokens to exclude
getIncludes
protected java.lang.String[] getIncludes()
- Returns a string array of the includes to be used
when assembling/copying the war.
- Returns:
- an array of tokens to include
getDependentWarExcludes
protected java.lang.String[] getDependentWarExcludes()
- Returns a string array of the excludes to be used
when adding dependent wars as an overlay onto this war.
- Returns:
- an array of tokens to exclude
getDependentWarIncludes
protected java.lang.String[] getDependentWarIncludes()
- Returns a string array of the includes to be used
when adding dependent wars as an overlay onto this war.
- Returns:
- an array of tokens to include
buildExplodedWebapp
public void buildExplodedWebapp(java.io.File webappDirectory)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
buildWebapp
public void buildWebapp(org.apache.maven.project.MavenProject project,
java.io.File webappDirectory)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException,
java.io.IOException
- Builds the webapp for the specified project with the new packaging task
thingy
Classes, libraries and tld files are copied to
the webappDirectory during this phase.
- Parameters:
project - the maven projectwebappDirectory - the target directory
- Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occurred while packaging the webapp
org.apache.maven.plugin.MojoFailureException - if an unexpected error occurred while packaging the webapp
java.io.IOException - if an error occurred while copying the files
getProject
public org.apache.maven.project.MavenProject getProject()
setProject
public void setProject(org.apache.maven.project.MavenProject project)
getClassesDirectory
public java.io.File getClassesDirectory()
setClassesDirectory
public void setClassesDirectory(java.io.File classesDirectory)
getWebappDirectory
public java.io.File getWebappDirectory()
setWebappDirectory
public void setWebappDirectory(java.io.File webappDirectory)
getWarSourceDirectory
public java.io.File getWarSourceDirectory()
setWarSourceDirectory
public void setWarSourceDirectory(java.io.File warSourceDirectory)
getWebXml
public java.io.File getWebXml()
setWebXml
public void setWebXml(java.io.File webXml)
getContainerConfigXML
public java.io.File getContainerConfigXML()
setContainerConfigXML
public void setContainerConfigXML(java.io.File containerConfigXML)
getOutputFileNameMapping
public java.lang.String getOutputFileNameMapping()
setOutputFileNameMapping
public void setOutputFileNameMapping(java.lang.String outputFileNameMapping)
getOverlays
public java.util.List getOverlays()
setOverlays
public void setOverlays(java.util.List overlays)
addOverlay
public void addOverlay(Overlay overlay)
isArchiveClasses
public boolean isArchiveClasses()
setArchiveClasses
public void setArchiveClasses(boolean archiveClasses)
getJarArchiver
public org.codehaus.plexus.archiver.jar.JarArchiver getJarArchiver()
setJarArchiver
public void setJarArchiver(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver)
getWebResources
public org.apache.maven.model.Resource[] getWebResources()
setWebResources
public void setWebResources(org.apache.maven.model.Resource[] webResources)
getFilters
public java.util.List getFilters()
setFilters
public void setFilters(java.util.List filters)
getWorkDirectory
public java.io.File getWorkDirectory()
setWorkDirectory
public void setWorkDirectory(java.io.File workDirectory)
getCacheFile
public java.io.File getCacheFile()
setCacheFile
public void setCacheFile(java.io.File cacheFile)
getWarSourceIncludes
public java.lang.String getWarSourceIncludes()
setWarSourceIncludes
public void setWarSourceIncludes(java.lang.String warSourceIncludes)
getWarSourceExcludes
public java.lang.String getWarSourceExcludes()
setWarSourceExcludes
public void setWarSourceExcludes(java.lang.String warSourceExcludes)
isUseCache
public boolean isUseCache()
setUseCache
public void setUseCache(boolean useCache)
getArchive
public org.apache.maven.archiver.MavenArchiveConfiguration getArchive()
getNonFilteredFileExtensions
public java.util.List getNonFilteredFileExtensions()
setNonFilteredFileExtensions
public void setNonFilteredFileExtensions(java.util.List nonFilteredFileExtensions)
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.