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<Artifact> |
filter(Set<Artifact> artifacts)
This function determines if filtering needs to be performed.
|
protected abstract String |
getArtifactFeature(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) |
isArtifactIncluded
public Set<Artifact> filter(Set<Artifact> artifacts)
artifacts
- the set of dependencies to filter.protected abstract String getArtifactFeature(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–2016 The Apache Software Foundation. All rights reserved.