private class AbstractWarMojo.DefaultWarPackagingContext extends java.lang.Object implements WarPackagingContext
Modifier and Type | Field and Description |
---|---|
private org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory |
private boolean |
filteringDeploymentDescriptors |
private java.util.List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> |
filterWrappers |
private java.util.List<java.lang.String> |
nonFilteredFileExtensions |
private OverlayManager |
overlayManager |
private java.lang.String |
resourceEncoding |
private boolean |
useJvmChmod |
private java.io.File |
webappDirectory |
private WebappStructure |
webappStructure |
Constructor and Description |
---|
DefaultWarPackagingContext(java.io.File webappDirectory,
WebappStructure webappStructure,
OverlayManager overlayManager,
java.util.List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers,
java.util.List<java.lang.String> nonFilteredFileExtensions,
boolean filteringDeploymentDescriptors,
org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
java.lang.String resourceEncoding,
boolean useJvmChmod) |
Modifier and Type | Method and Description |
---|---|
boolean |
archiveClasses()
Specify whether the classes resources should be archived in the WEB-INF/lib of the generated web app.
|
org.apache.maven.archiver.MavenArchiveConfiguration |
getArchive()
The maven archive configuration to use.
|
org.codehaus.plexus.archiver.manager.ArchiverManager |
getArchiverManager()
Returns the archiver manager to use.
|
org.apache.maven.artifact.factory.ArtifactFactory |
getArtifactFactory() |
java.io.File |
getClassesDirectory()
Returns the directory holding generated classes.
|
java.util.List<java.lang.String> |
getFilters()
Returns the list of filter files to use.
|
java.util.List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> |
getFilterWrappers() |
org.codehaus.plexus.archiver.jar.JarArchiver |
getJarArchiver()
Returns the Jar archiver needed for archiving classes directory into jar file under WEB-INF/lib.
|
org.apache.maven.plugin.logging.Log |
getLog()
Returns the logger to use to output logging event.
|
org.apache.maven.shared.filtering.MavenFileFilter |
getMavenFileFilter()
Returns the
MavenFileFilter instance to use. |
java.lang.String |
getOutputFileNameMapping()
Returns the output file name mapping to use, if any.
|
java.io.File |
getOverlaysWorkDirectory()
Returns the directory to unpack dependent WARs into if needed.
|
java.util.List<java.lang.String> |
getOwnerIds()
Returns the list of registered overlays for this session.
|
org.apache.maven.project.MavenProject |
getProject()
Returns the maven project.
|
java.lang.String |
getResourceEncoding()
Returns the encoding to use for resources.
|
org.apache.maven.execution.MavenSession |
getSession()
Returns the Maven session.
|
java.io.File |
getWebappDirectory()
Returns the webapp directory.
|
java.io.File |
getWebappSourceDirectory()
Returns the main webapp source directory.
|
java.lang.String[] |
getWebappSourceExcludes()
Returns the webapp source excludes.
|
java.lang.String[] |
getWebappSourceIncludes()
Returns the webapp source includes.
|
WebappStructure |
getWebappStructure()
Returns the
WebappStructure . |
boolean |
isFilteringDeploymentDescriptors() |
boolean |
isNonFilteredExtension(java.lang.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, othewrwise false |
private final org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
private final java.lang.String resourceEncoding
private final WebappStructure webappStructure
private final java.io.File webappDirectory
private final OverlayManager overlayManager
private final java.util.List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers
private java.util.List<java.lang.String> nonFilteredFileExtensions
private boolean filteringDeploymentDescriptors
private boolean useJvmChmod
DefaultWarPackagingContext(java.io.File webappDirectory, WebappStructure webappStructure, OverlayManager overlayManager, java.util.List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> filterWrappers, java.util.List<java.lang.String> nonFilteredFileExtensions, boolean filteringDeploymentDescriptors, org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, java.lang.String resourceEncoding, boolean useJvmChmod)
webappDirectory
- The web application directory.webappStructure
- The web app structure.overlayManager
- The overlay manager.filterWrappers
- The filter wrappersnonFilteredFileExtensions
- The non filtered file extensions.filteringDeploymentDescriptors
- The filtering deployment descriptors.artifactFactory
- The artifact factory.resourceEncoding
- The resource encoding.useJvmChmod
- use Jvm chmod or not.public org.apache.maven.project.MavenProject getProject()
getProject
in interface WarPackagingContext
public java.io.File getWebappDirectory()
getWebappDirectory
in interface WarPackagingContext
public java.io.File getClassesDirectory()
getClassesDirectory
in interface WarPackagingContext
public org.apache.maven.plugin.logging.Log getLog()
getLog
in interface WarPackagingContext
public java.lang.String getOutputFileNameMapping()
getOutputFileNameMapping
in interface WarPackagingContext
public java.io.File getWebappSourceDirectory()
getWebappSourceDirectory
in interface WarPackagingContext
public java.lang.String[] getWebappSourceIncludes()
getWebappSourceIncludes
in interface WarPackagingContext
public java.lang.String[] getWebappSourceExcludes()
getWebappSourceExcludes
in interface WarPackagingContext
public boolean isWebappSourceIncludeEmptyDirectories()
true
if empty directories should be includes, othewrwise false
isWebappSourceIncludeEmptyDirectories
in interface WarPackagingContext
true
if empty directories should be includes, othewrwise false
public boolean archiveClasses()
archiveClasses
in interface WarPackagingContext
public java.io.File getOverlaysWorkDirectory()
getOverlaysWorkDirectory
in interface WarPackagingContext
public org.codehaus.plexus.archiver.manager.ArchiverManager getArchiverManager()
getArchiverManager
in interface WarPackagingContext
public org.apache.maven.archiver.MavenArchiveConfiguration getArchive()
getArchive
in interface WarPackagingContext
public org.codehaus.plexus.archiver.jar.JarArchiver getJarArchiver()
getJarArchiver
in interface WarPackagingContext
public java.util.List<java.lang.String> getFilters()
getFilters
in interface WarPackagingContext
public WebappStructure getWebappStructure()
WebappStructure
.getWebappStructure
in interface WarPackagingContext
public java.util.List<java.lang.String> getOwnerIds()
getOwnerIds
in interface WarPackagingContext
public org.apache.maven.shared.filtering.MavenFileFilter getMavenFileFilter()
MavenFileFilter
instance to use.getMavenFileFilter
in interface WarPackagingContext
public java.util.List<org.apache.maven.shared.utils.io.FileUtils.FilterWrapper> getFilterWrappers()
getFilterWrappers
in interface WarPackagingContext
List
of FileUtils.FilterWrapper
public boolean isNonFilteredExtension(java.lang.String fileName)
isNonFilteredExtension
in interface WarPackagingContext
fileName
- the name of filepublic boolean isFilteringDeploymentDescriptors()
isFilteringDeploymentDescriptors
in interface WarPackagingContext
public org.apache.maven.artifact.factory.ArtifactFactory getArtifactFactory()
getArtifactFactory
in interface WarPackagingContext
ArtifactFactory
public org.apache.maven.execution.MavenSession getSession()
getSession
in interface WarPackagingContext
public java.lang.String getResourceEncoding()
getResourceEncoding
in interface WarPackagingContext
public boolean isUseJvmChmod()
isUseJvmChmod
in interface WarPackagingContext