public class AcrModule extends AbstractEarModule
EarModule
implementation for an Acr Module.ALT_DD, altDeploymentDescriptor, bundleDir, bundleFileName, earExecutionContext, excluded, JAVA_MODULE, MODULE_ELEMENT, unpack
Constructor and Description |
---|
AcrModule()
Create an instance.
|
AcrModule(Artifact a,
String defaultLibBundleDir,
Boolean includeInApplicationXml) |
Modifier and Type | Method and Description |
---|---|
void |
appendModule(XMLWriter writer,
String version,
Boolean generateId)
Appends the XML representation of this module.
|
boolean |
changeManifestClasspath() |
String |
getType()
Returns the type associated to the module.
|
void |
resolveArtifact(Set<Artifact> artifacts)
Resolves the
Artifact represented by the module. |
getAltDeploymentDescriptor, getArtifact, getArtifactId, getBundleDir, getBundleFileName, getClassifier, getGroupId, getLibDir, getModuleId, getUri, isExcluded, setEarExecutionContext, shouldUnpack, startModuleElement, toString, writeAltDeploymentDescriptor
public void appendModule(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 EarModule
resolveArtifact
in class AbstractEarModule
artifacts
- the project's artifactsEarPluginException
- if the artifact could not be resolvedMojoFailureException
- if an unexpected error occurredpublic String getType()
public boolean changeManifestClasspath()
changeManifestClasspath
in interface EarModule
changeManifestClasspath
in class AbstractEarModule
true
Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.