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
- Author:
- Brian Fox
-
-
Constructor Summary
Constructors Constructor Description ScopeFilter(java.lang.String includeScope, java.lang.String excludeScope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Artifact>
filter(java.util.Set<Artifact> artifacts)
This function determines if filtering needs to be performed.java.lang.String
getExcludeScope()
java.lang.String
getIncludeScope()
void
setExcludeScope(java.lang.String scope)
void
setIncludeScope(java.lang.String scope)
-
Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
isArtifactIncluded
-
-
-
-
Method Detail
-
filter
public java.util.Set<Artifact> filter(java.util.Set<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
public java.lang.String getIncludeScope()
- Returns:
- Returns the includeScope.
-
setIncludeScope
public void setIncludeScope(java.lang.String scope)
- Parameters:
scope
- The includeScope to set.
-
getExcludeScope
public java.lang.String getExcludeScope()
- Returns:
- Returns the excludeScope.
-
setExcludeScope
public void setExcludeScope(java.lang.String scope)
- Parameters:
scope
- The excludeScope to set.
-
-