public class ScopeFilter extends AbstractArtifactsFilter
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
excludeScope |
private java.lang.String |
includeScope |
Constructor and Description |
---|
ScopeFilter(java.lang.String includeScope,
java.lang.String excludeScope) |
Modifier and Type | Method and 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)
This function determines if filtering needs to be performed.
|
java.lang.String |
getExcludeScope() |
java.lang.String |
getIncludeScope() |
private java.util.Set<org.apache.maven.artifact.Artifact> |
includeSingleScope(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
java.lang.String scope) |
void |
setExcludeScope(java.lang.String scope) |
void |
setIncludeScope(java.lang.String scope) |
isArtifactIncluded
private java.lang.String includeScope
private java.lang.String excludeScope
public ScopeFilter(java.lang.String includeScope, java.lang.String excludeScope)
includeScope
- the scope to be included.excludeScope
- the scope to be excluded.public java.util.Set<org.apache.maven.artifact.Artifact> filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts) throws ArtifactFilterException
artifacts
- the set of artifacts to filter.ArtifactFilterException
- when there's an invalid included scopeprivate java.util.Set<org.apache.maven.artifact.Artifact> includeSingleScope(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, java.lang.String scope)
private java.util.Set<org.apache.maven.artifact.Artifact> excludeSingleScope(java.util.Set<org.apache.maven.artifact.Artifact> artifacts, java.lang.String scope)
public java.lang.String getIncludeScope()
public void setIncludeScope(java.lang.String scope)
scope
- The includeScope to set.public java.lang.String getExcludeScope()
public void setExcludeScope(java.lang.String scope)
scope
- The excludeScope to set.