public class ScopeFilter extends AbstractArtifactsFilter
ScopeFilter class.
Constructor and Description |
---|
ScopeFilter(String includeScope,
String excludeScope)
Constructor for ScopeFilter.
|
Modifier and Type | Method and Description |
---|---|
Set<org.apache.maven.artifact.Artifact> |
filter(Set<org.apache.maven.artifact.Artifact> artifacts)
filter.
|
String |
getExcludeScope()
Getter for the field
excludeScope . |
String |
getIncludeScope()
Getter for the field
includeScope . |
void |
setExcludeScope(String scope)
Setter for the field
excludeScope . |
void |
setIncludeScope(String scope)
Setter for the field
includeScope . |
isArtifactIncluded
public Set<org.apache.maven.artifact.Artifact> filter(Set<org.apache.maven.artifact.Artifact> artifacts) throws ArtifactFilterException
filter.
This function determines if filtering needs to be performed. Excludes are ignored if Includes are used.artifacts
- Artifact
ArtifactFilterException
- in case of a failure.public String getIncludeScope()
Getter for the field includeScope
.
public void setIncludeScope(String scope)
Setter for the field includeScope
.
scope
- The includeScope to set.public String getExcludeScope()
Getter for the field excludeScope
.
public void setExcludeScope(String scope)
Setter for the field excludeScope
.
scope
- The excludeScope to set.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.