ArtifactsFilter
public class ScopeFilter extends AbstractArtifactsFilter
Constructor | Description |
---|---|
ScopeFilter(java.lang.String includeScope,
java.lang.String excludeScope) |
Modifier and Type | Method | Description |
---|---|---|
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() |
|
void |
setExcludeScope(java.lang.String scope) |
|
void |
setIncludeScope(java.lang.String scope) |
isArtifactIncluded
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 scopepublic 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.Copyright © 2018. All rights reserved.