final class CumulativeScopeArtifactFilter
extends java.lang.Object
implements org.apache.maven.artifact.resolver.filter.ArtifactFilter
ScopeArtifactFilter
instances ORed together.Modifier and Type | Field and Description |
---|---|
private boolean |
compileScope |
private boolean |
providedScope |
private boolean |
runtimeScope |
private boolean |
systemScope |
private boolean |
testScope |
Constructor and Description |
---|
CumulativeScopeArtifactFilter()
Create a new filter with all scopes disabled.
|
CumulativeScopeArtifactFilter(java.util.Collection<java.lang.String> scopes)
Create a new filter with the specified scopes and their implied scopes enabled.
|
CumulativeScopeArtifactFilter(java.lang.String scope)
Create a new filter with the specified scope and its implied scopes enabled.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addScope(java.lang.String scope)
Enable a new scope, along with its implied scopes, in this filter.
|
boolean |
include(org.apache.maven.artifact.Artifact artifact) |
private boolean compileScope
private boolean runtimeScope
private boolean testScope
private boolean providedScope
private boolean systemScope
CumulativeScopeArtifactFilter()
CumulativeScopeArtifactFilter(java.lang.String scope)
scope
- The scope to enable, along with all implied scopes.CumulativeScopeArtifactFilter(java.util.Collection<java.lang.String> scopes)
scopes
- The scopes to enable, along with all implied scopes, may be null
.void addScope(java.lang.String scope)
scope
- The scope to enable, along with all implied scopes.public boolean include(org.apache.maven.artifact.Artifact artifact)
include
in interface org.apache.maven.artifact.resolver.filter.ArtifactFilter