public interface WarPackagingContext
Modifier and Type | Method and Description |
---|---|
void |
addResource(String resource)
Add a live resource to the war.
|
boolean |
archiveClasses()
Specify whether the classes resources should be archived in the WEB-INF/lib of the generated web app.
|
void |
deleteOutdatedResources()
Delete outdated resources, ie resources that are found in the war but that were not added by the current
packaging process, then are supposed to be content from a previous run.
|
org.apache.maven.archiver.MavenArchiveConfiguration |
getArchive()
The maven archive configuration to use.
|
ArchiverManager |
getArchiverManager()
Returns the archiver manager to use.
|
ArtifactFactory |
getArtifactFactory() |
File |
getClassesDirectory()
Returns the directory holding generated classes.
|
List<String> |
getFilters()
Returns the list of filter files to use.
|
List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> |
getFilterWrappers() |
JarArchiver |
getJarArchiver()
Returns the Jar archiver needed for archiving classes directory into jar file under WEB-INF/lib.
|
Log |
getLog()
Returns the logger to use to output logging event.
|
org.apache.maven.shared.filtering.MavenFileFilter |
getMavenFileFilter()
Returns the
MavenFileFilter instance to use. |
String |
getOutputFileNameMapping()
Returns the output file name mapping to use, if any.
|
String |
getOutputTimestamp()
Output timestamp for reproducible archive creation.
|
File |
getOverlaysWorkDirectory()
Returns the directory to unpack dependent WARs into if needed.
|
List<String> |
getOwnerIds()
Returns the list of registered overlays for this session.
|
MavenProject |
getProject()
Returns the maven project.
|
String |
getResourceEncoding()
Returns the encoding to use for resources.
|
MavenSession |
getSession()
Returns the Maven session.
|
File |
getWebappDirectory()
Returns the webapp directory.
|
File |
getWebappSourceDirectory()
Returns the main webapp source directory.
|
String[] |
getWebappSourceExcludes()
Returns the webapp source excludes.
|
String[] |
getWebappSourceIncludes()
Returns the webapp source includes.
|
WebappStructure |
getWebappStructure()
Returns the
WebappStructure . |
Boolean |
isFailOnMissingWebXml()
Returns the flag that switch on/off the missing web.xml validation
|
boolean |
isFilteringDeploymentDescriptors() |
boolean |
isNonFilteredExtension(String fileName)
Specify if the given fileName belongs to the list of extensions that must not be filtered
|
boolean |
isUseJvmChmod() |
boolean |
isWebappSourceIncludeEmptyDirectories()
Returns
true if empty directories should be includes, otherwise false |
MavenProject getProject()
File getWebappDirectory()
File getWebappSourceDirectory()
String[] getWebappSourceIncludes()
boolean isWebappSourceIncludeEmptyDirectories()
true
if empty directories should be includes, otherwise false
true
if empty directories should be includes, otherwise false
String[] getWebappSourceExcludes()
File getClassesDirectory()
boolean archiveClasses()
Log getLog()
File getOverlaysWorkDirectory()
ArchiverManager getArchiverManager()
org.apache.maven.archiver.MavenArchiveConfiguration getArchive()
JarArchiver getJarArchiver()
String getOutputFileNameMapping()
List<String> getFilters()
WebappStructure getWebappStructure()
WebappStructure
.List<String> getOwnerIds()
org.apache.maven.shared.filtering.MavenFileFilter getMavenFileFilter()
MavenFileFilter
instance to use.List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> getFilterWrappers()
List
of FileUtils.FilterWrapper
boolean isNonFilteredExtension(String fileName)
fileName
- the name of fileboolean isFilteringDeploymentDescriptors()
ArtifactFactory getArtifactFactory()
ArtifactFactory
MavenSession getSession()
String getResourceEncoding()
boolean isUseJvmChmod()
Boolean isFailOnMissingWebXml()
void addResource(String resource)
mvn clean
when resources are removed.resource
- the resource that is to me marked as not outdateddeleteOutdatedResources()
void deleteOutdatedResources()
mvn clean
when resources are removed.addResource(java.lang.String)
String getOutputTimestamp()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.