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
- Version:
- $Id: ScopeFilter.java 1716978 2015-11-28 14:47:04Z khmarbaise $
- Author:
- Brian Fox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.maven.artifact.Artifact>
This function determines if filtering needs to be performed.void
setExcludeScope
(String scope) void
setIncludeScope
(String scope) Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
isArtifactIncluded
-
Constructor Details
-
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 This function determines if filtering needs to be performed. Excludes are ignored if Includes are used.- Parameters:
artifacts
- the set of artifacts to filter.- Returns:
- a Set of filtered artifacts.
- Throws:
ArtifactFilterException
- when there's an invalid included scope
-
getIncludeScope
- Returns:
- Returns the includeScope.
-
setIncludeScope
- Parameters:
scope
- The includeScope to set.
-
getExcludeScope
- Returns:
- Returns the excludeScope.
-
setExcludeScope
- Parameters:
scope
- The excludeScope to set.
-