public abstract class AbstractArtifactFeatureFilter extends AbstractArtifactsFilter
| Constructor and Description |
|---|
AbstractArtifactFeatureFilter(String include,
String exclude) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareFeatures(String lhs,
String rhs)
Allows Feature comparison to be customized
|
Set<org.apache.maven.artifact.Artifact> |
filter(Set<org.apache.maven.artifact.Artifact> artifacts)
This function determines if filtering needs to be performed.
|
protected abstract String |
getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
Should return the type or classifier of the given artifact, so that we can filter it
|
List<String> |
getExcludes() |
List<String> |
getIncludes() |
void |
setExcludes(String excludeString) |
void |
setIncludes(String includeString) |
isArtifactIncludedpublic Set<org.apache.maven.artifact.Artifact> filter(Set<org.apache.maven.artifact.Artifact> artifacts)
artifacts - the set of dependencies to filter.protected abstract String getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
artifact - artifact to return type or classifier ofpublic void setExcludes(String excludeString)
excludeString - comma separated list with excludes.public void setIncludes(String includeString)
includeString - comma separated list with includes.Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.