public class WebModule extends AbstractEarModule
EarModule implementation for a Web application module.ALT_DD, altDeploymentDescriptor, bundleDir, bundleFileName, earExecutionContext, excluded, JAVA_MODULE, MODULE_ELEMENT, unpack| Constructor and Description |
|---|
WebModule()
Create an instance.
|
WebModule(Artifact a) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
String version,
Boolean generateId)
Appends the XML representation of this module.
|
String |
getContextRoot()
Returns the context root to use for the web module.
|
String |
getLibDir() |
String |
getType()
Returns the type associated to the module.
|
void |
resolveArtifact(Set<Artifact> artifacts)
Resolves the
Artifact represented by the module. |
changeManifestClasspath, getAltDeploymentDescriptor, getArtifact, getArtifactId, getBundleDir, getBundleFileName, getClassifier, getGroupId, getModuleId, getOriginalBundleFileName, getUri, isExcluded, setEarExecutionContext, shouldUnpack, startModuleElement, toString, writeAltDeploymentDescriptorpublic void appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
String version,
Boolean generateId)
writer - the writer to useversion - the version of the application.xml filegenerateId - whether an id should be generatedpublic void resolveArtifact(Set<Artifact> artifacts) throws EarPluginException, MojoFailureException
Artifact represented by the module. Note that the EarExecutionContext might be used
to customize further the resolution.resolveArtifact in interface EarModuleresolveArtifact in class AbstractEarModuleartifacts - the project's artifactsEarPluginException - if the artifact could not be resolvedMojoFailureException - if an unexpected error occurredpublic String getContextRoot()
public String getType()
public String getLibDir()
getLibDir in interface EarModulegetLibDir in class AbstractEarModulenullCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.