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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringexcludeScopeprivate java.lang.StringincludeScope
-
Constructor Summary
Constructors Constructor Description ScopeFilter(java.lang.String includeScope, java.lang.String excludeScope)Constructor for ScopeFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Set<org.apache.maven.artifact.Artifact>excludeSingleScope(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, java.lang.String scope)java.util.Set<org.apache.maven.artifact.Artifact>filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)filter.java.lang.StringgetExcludeScope()Getter for the fieldexcludeScope.java.lang.StringgetIncludeScope()Getter for the fieldincludeScope.private java.util.Set<org.apache.maven.artifact.Artifact>includeSingleScope(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, java.lang.String scope)voidsetExcludeScope(java.lang.String scope)Setter for the fieldexcludeScope.voidsetIncludeScope(java.lang.String scope)Setter for the fieldincludeScope.-
Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
isArtifactIncluded
-
-
-
-
Method Detail
-
filter
public java.util.Set<org.apache.maven.artifact.Artifact> filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts) throws ArtifactFilterExceptionfilter.
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
private java.util.Set<org.apache.maven.artifact.Artifact> includeSingleScope(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, java.lang.String scope)
-
excludeSingleScope
private java.util.Set<org.apache.maven.artifact.Artifact> excludeSingleScope(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, java.lang.String scope)
-
getIncludeScope
public java.lang.String getIncludeScope()
Getter for the field
includeScope.- Returns:
- Returns the includeScope.
-
setIncludeScope
public void setIncludeScope(java.lang.String scope)
Setter for the field
includeScope.- Parameters:
scope- The includeScope to set.
-
getExcludeScope
public java.lang.String getExcludeScope()
Getter for the field
excludeScope.- Returns:
- Returns the excludeScope.
-
setExcludeScope
public void setExcludeScope(java.lang.String scope)
Setter for the field
excludeScope.- Parameters:
scope- The excludeScope to set.
-
-