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
public class ScopeFilter extends AbstractArtifactsFilter
ScopeFilter class.
- Author:
- Brian Fox
-
-
Constructor Summary
Constructors Constructor Description ScopeFilter(String includeScope, String excludeScope)
Constructor for ScopeFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Artifact>
filter(Set<Artifact> artifacts)
filter.String
getExcludeScope()
Getter for the fieldexcludeScope
.String
getIncludeScope()
Getter for the fieldincludeScope
.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
-
-
-
-
Method Detail
-
filter
public Set<Artifact> filter(Set<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.
-
getIncludeScope
public String getIncludeScope()
Getter for the field
includeScope
.- Returns:
- Returns the includeScope.
-
setIncludeScope
public void setIncludeScope(String scope)
Setter for the field
includeScope
.- Parameters:
scope
- The includeScope to set.
-
getExcludeScope
public String getExcludeScope()
Getter for the field
excludeScope
.- Returns:
- Returns the excludeScope.
-
setExcludeScope
public void setExcludeScope(String scope)
Setter for the field
excludeScope
.- Parameters:
scope
- The excludeScope to set.
-
-