Package org.eclipse.jetty.maven.plugin
Class MavenWebInfConfiguration
- java.lang.Object
-
- org.eclipse.jetty.webapp.AbstractConfiguration
-
- org.eclipse.jetty.webapp.WebInfConfiguration
-
- org.eclipse.jetty.maven.plugin.MavenWebInfConfiguration
-
- All Implemented Interfaces:
Configuration
public class MavenWebInfConfiguration extends WebInfConfiguration
MavenWebInfConfiguration WebInfConfiguration to take account of overlaid wars expressed as project dependencies and potential configured via the maven-war-plugin.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.webapp.WebInfConfiguration
WebInfConfiguration.ContainerPathNameMatcher, WebInfConfiguration.WebAppPathNameMatcher
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration
Configuration.ClassList, Configuration.Wrapper, Configuration.WrapperFunction
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.webapp.WebInfConfiguration
_preUnpackBaseResource, CONTAINER_JAR_PATTERN, RESOURCE_DIRS, TEMPDIR_CONFIGURED, WEBINF_JAR_PATTERN
-
Fields inherited from interface org.eclipse.jetty.webapp.Configuration
ATTR
-
-
Constructor Summary
Constructors Constructor Description MavenWebInfConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(WebAppContext context)
Configure WebApp.protected java.util.List<Resource>
findClassDirs(WebAppContext context)
Add in the classes dirs from test/classes and target/classesprotected java.util.List<Resource>
findJars(WebAppContext context)
Get the jars to examine from the files from which we have synthesized the classpath.-
Methods inherited from class org.eclipse.jetty.webapp.WebInfConfiguration
cloneConfigure, configureTempDirectory, deconfigure, findAndFilterContainerPaths, findAndFilterWebAppPaths, findExtraClasspathDirs, findExtraClasspathJars, findWebInfClassesDir, findWebInfLibJars, getCanonicalNameForWebAppTmpDir, getResourceBaseName, makeTempDirectory, preConfigure, resolveTempDirectory, unpack
-
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
destroy, postConfigure
-
-
-
-
Method Detail
-
configure
public void configure(WebAppContext context) throws java.lang.Exception
Description copied from interface:Configuration
Configure WebApp.Typically this step applies the discovered configuration resources to either the
WebAppContext
or the associatedMetaData
.- Specified by:
configure
in interfaceConfiguration
- Overrides:
configure
in classWebInfConfiguration
- Parameters:
context
- The context to configure- Throws:
java.lang.Exception
- if unable to configure- See Also:
WebInfConfiguration.configure(org.eclipse.jetty.webapp.WebAppContext)
-
findJars
protected java.util.List<Resource> findJars(WebAppContext context) throws java.lang.Exception
Get the jars to examine from the files from which we have synthesized the classpath. Note that the classpath is not set at this point, so we cannot get them from the classpath.- Overrides:
findJars
in classWebInfConfiguration
- Parameters:
context
- the web app context- Returns:
- the list of jars found
- Throws:
java.lang.Exception
- if unable to find the jars
-
findClassDirs
protected java.util.List<Resource> findClassDirs(WebAppContext context) throws java.lang.Exception
Add in the classes dirs from test/classes and target/classes- Overrides:
findClassDirs
in classWebInfConfiguration
- Throws:
java.lang.Exception
- See Also:
WebInfConfiguration.findClassDirs(org.eclipse.jetty.webapp.WebAppContext)
-
-