public class Overlay extends Object
An overlay is a skeleton WAR added to another WAR project in order to inject a functionality, resources or any other shared component.
Note that a particular WAR dependency can be added multiple times as an overlay with different includes/excludes filter; this allows building a fine grained overwriting policy.
The current project can also be described as an overlay and can not be specified twice. An overlay with no groupId and no artifactId represents the current project.
| Modifier and Type | Field and Description |
|---|---|
static String[] |
DEFAULT_EXCLUDES
The list of default excludes.
|
static String[] |
DEFAULT_INCLUDES
The list of default includes.
|
| Constructor and Description |
|---|
Overlay()
Create instance.
|
Overlay(String groupId,
String artifactId) |
| Modifier and Type | Method and Description |
|---|---|
static Overlay |
createInstance() |
boolean |
equals(Object o) |
Artifact |
getArtifact() |
String |
getArtifactId() |
String |
getClassifier() |
String[] |
getExcludes() |
String |
getGroupId() |
String |
getId() |
String[] |
getIncludes() |
String |
getTargetPath() |
String |
getType() |
int |
hashCode() |
boolean |
isCurrentProject()
Specify whether this overlay represents the current project or not.
|
boolean |
isFiltered() |
void |
setArtifact(Artifact artifact) |
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setExcludes(String excludes) |
void |
setExcludes(String[] excludes) |
void |
setFiltered(boolean filtered) |
void |
setGroupId(String groupId) |
void |
setId(String id) |
void |
setIncludes(String includes) |
void |
setIncludes(String[] includes) |
void |
setSkip(boolean skip) |
void |
setTargetPath(String targetPath) |
void |
setType(String type) |
boolean |
shouldSkip() |
String |
toString() |
public static final String[] DEFAULT_INCLUDES
public static final String[] DEFAULT_EXCLUDES
public Overlay()
public Overlay(String groupId, String artifactId)
groupId - groupIdartifactId - artifactIdpublic boolean isCurrentProject()
public String getId()
public void setId(String id)
id - The id.public String getArtifactId()
artifactIdpublic void setArtifactId(String artifactId)
artifactId - artifactIdpublic String getClassifier()
classifierpublic void setClassifier(String classifier)
classifier - classifierpublic boolean isFiltered()
filteredpublic void setFiltered(boolean filtered)
filtered - filteredpublic boolean shouldSkip()
skippublic void setSkip(boolean skip)
skip - skippublic String getTargetPath()
targetPathpublic void setTargetPath(String targetPath)
targetPath - targetPathCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.