Class ScopeFilter
java.lang.Object
org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
org.apache.maven.shared.artifact.filter.collection.ScopeFilter
- All Implemented Interfaces:
ArtifactsFilter
ScopeFilter class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScopeFilter
(String includeScope, String excludeScope) Constructor for ScopeFilter. -
Method Summary
Modifier and TypeMethodDescriptionprivate Set<org.apache.maven.artifact.Artifact>
excludeSingleScope
(Set<org.apache.maven.artifact.Artifact> artifacts, String scope) Set<org.apache.maven.artifact.Artifact>
filter.Getter for the fieldexcludeScope
.Getter for the fieldincludeScope
.private Set<org.apache.maven.artifact.Artifact>
includeSingleScope
(Set<org.apache.maven.artifact.Artifact> artifacts, String scope) void
setExcludeScope
(String scope) Setter for the fieldexcludeScope
.void
setIncludeScope
(String scope) Setter for the fieldincludeScope
.Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
isArtifactIncluded
-
Field Details
-
includeScope
-
excludeScope
-
-
Constructor Details
-
ScopeFilter
Constructor for ScopeFilter.
- Parameters:
includeScope
- the scope to be included.excludeScope
- the scope to be excluded.
-
-
Method Details
-
filter
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.- Parameters:
artifacts
-Artifact
- Returns:
- Set of artifacts.
- Throws:
ArtifactFilterException
- in case of a failure.
-
includeSingleScope
-
excludeSingleScope
-
getIncludeScope
Getter for the field
includeScope
.- Returns:
- Returns the includeScope.
-
setIncludeScope
Setter for the field
includeScope
.- Parameters:
scope
- The includeScope to set.
-
getExcludeScope
Getter for the field
excludeScope
.- Returns:
- Returns the excludeScope.
-
setExcludeScope
Setter for the field
excludeScope
.- Parameters:
scope
- The excludeScope to set.
-