|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.apache.maven.plugin.war.AbstractWarMojo
public abstract class AbstractWarMojo
Contains common jobs for WAR mojos.
Field Summary | |
---|---|
static String |
DEFAULT_FILE_NAME_MAPPING
|
static String |
DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
|
protected String |
escapeString
Expression preceded with this String won't be interpolated. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractWarMojo()
|
Method Summary | |
---|---|
void |
addOverlay(Overlay overlay)
|
void |
buildExplodedWebapp(File webappDirectory)
|
void |
buildWebapp(org.apache.maven.project.MavenProject project,
File webappDirectory)
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. |
org.apache.maven.archiver.MavenArchiveConfiguration |
getArchive()
|
org.apache.maven.artifact.factory.ArtifactFactory |
getArtifactFactory()
|
File |
getCacheFile()
|
File |
getClassesDirectory()
|
File |
getContainerConfigXML()
|
Overlay |
getCurrentProjectOverlay()
|
protected String[] |
getDependentWarExcludes()
Returns a string array of the excludes to be used when adding dependent WAR as an overlay onto this WAR. |
protected String[] |
getDependentWarIncludes()
Returns a string array of the includes to be used when adding dependent WARs as an overlay onto this WAR. |
protected String[] |
getExcludes()
Returns a string array of the excludes to be used when copying the content of the WAR source directory. |
List |
getFilters()
|
protected String[] |
getIncludes()
Returns a string array of the includes to be used when assembling/copying the WAR. |
org.codehaus.plexus.archiver.jar.JarArchiver |
getJarArchiver()
|
List |
getNonFilteredFileExtensions()
|
String |
getOutputFileNameMapping()
|
List |
getOverlays()
|
org.apache.maven.project.MavenProject |
getProject()
|
File |
getWarSourceDirectory()
|
String |
getWarSourceExcludes()
|
String |
getWarSourceIncludes()
|
File |
getWebappDirectory()
|
org.apache.maven.model.Resource[] |
getWebResources()
|
File |
getWebXml()
|
File |
getWorkDirectory()
|
boolean |
isArchiveClasses()
|
boolean |
isUseCache()
|
void |
setArchiveClasses(boolean archiveClasses)
|
void |
setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
|
void |
setCacheFile(File cacheFile)
|
void |
setClassesDirectory(File classesDirectory)
|
void |
setContainerConfigXML(File containerConfigXML)
|
void |
setFilters(List filters)
|
void |
setJarArchiver(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver)
|
void |
setNonFilteredFileExtensions(List nonFilteredFileExtensions)
|
void |
setOutputFileNameMapping(String outputFileNameMapping)
|
void |
setOverlays(List overlays)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setUseCache(boolean useCache)
|
void |
setWarSourceDirectory(File warSourceDirectory)
|
void |
setWarSourceExcludes(String warSourceExcludes)
|
void |
setWarSourceIncludes(String warSourceIncludes)
|
void |
setWebappDirectory(File webappDirectory)
|
void |
setWebResources(org.apache.maven.model.Resource[] webResources)
|
void |
setWebXml(File webXml)
|
void |
setWorkDirectory(File workDirectory)
|
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 |
Field Detail |
---|
public static final String DEFAULT_FILE_NAME_MAPPING
public static final String DEFAULT_FILE_NAME_MAPPING_CLASSIFIER
protected String escapeString
\${foo}
will be replaced with ${foo}
.
Constructor Detail |
---|
public AbstractWarMojo()
Method Detail |
---|
public Overlay getCurrentProjectOverlay()
protected String[] getExcludes()
protected String[] getIncludes()
protected String[] getDependentWarExcludes()
protected String[] getDependentWarIncludes()
public void buildExplodedWebapp(File webappDirectory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public void buildWebapp(org.apache.maven.project.MavenProject project, File webappDirectory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException, IOException
project
- the maven projectwebappDirectory
- the target directory
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
IOException
- if an error occurred while copying the filespublic org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
public File getClassesDirectory()
public void setClassesDirectory(File classesDirectory)
public File getWebappDirectory()
public void setWebappDirectory(File webappDirectory)
public File getWarSourceDirectory()
public void setWarSourceDirectory(File warSourceDirectory)
public File getWebXml()
public void setWebXml(File webXml)
public File getContainerConfigXML()
public void setContainerConfigXML(File containerConfigXML)
public String getOutputFileNameMapping()
public void setOutputFileNameMapping(String outputFileNameMapping)
public List getOverlays()
public void setOverlays(List overlays)
public void addOverlay(Overlay overlay)
public boolean isArchiveClasses()
public void setArchiveClasses(boolean archiveClasses)
public org.codehaus.plexus.archiver.jar.JarArchiver getJarArchiver()
public void setJarArchiver(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver)
public org.apache.maven.model.Resource[] getWebResources()
public void setWebResources(org.apache.maven.model.Resource[] webResources)
public List getFilters()
public void setFilters(List filters)
public File getWorkDirectory()
public void setWorkDirectory(File workDirectory)
public File getCacheFile()
public void setCacheFile(File cacheFile)
public String getWarSourceIncludes()
public void setWarSourceIncludes(String warSourceIncludes)
public String getWarSourceExcludes()
public void setWarSourceExcludes(String warSourceExcludes)
public boolean isUseCache()
public void setUseCache(boolean useCache)
public org.apache.maven.archiver.MavenArchiveConfiguration getArchive()
public List getNonFilteredFileExtensions()
public void setNonFilteredFileExtensions(List nonFilteredFileExtensions)
public org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
public void setArtifactFactory(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |