public abstract class AbstractArtifactFeatureFilter extends AbstractArtifactsFilter
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
excludes
The list of types or classifiers to exclude (ignored if includes != null)
|
private java.util.List<java.lang.String> |
includes
The list of types or classifiers to include
|
| Constructor and Description |
|---|
AbstractArtifactFeatureFilter(java.lang.String include,
java.lang.String exclude) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareFeatures(java.lang.String lhs,
java.lang.String rhs)
Allows Feature comparison to be customized
|
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.
|
private java.util.Set<org.apache.maven.artifact.Artifact> |
filterExcludes(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
java.util.List<java.lang.String> theExcludes)
Processes the dependencies list and excludes the dependencies that match a filter in the list.
|
private java.util.Set<org.apache.maven.artifact.Artifact> |
filterIncludes(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
java.util.List<java.lang.String> theIncludes)
Processes the dependencies list and includes the dependencies that match a filter in the list.
|
protected abstract java.lang.String |
getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
Should return the type or classifier of the given artifact, so that we can filter it
|
java.util.List<java.lang.String> |
getExcludes() |
java.util.List<java.lang.String> |
getIncludes() |
void |
setExcludes(java.lang.String excludeString) |
void |
setIncludes(java.lang.String includeString) |
isArtifactIncludedprivate java.util.List<java.lang.String> includes
private java.util.List<java.lang.String> excludes
public AbstractArtifactFeatureFilter(java.lang.String include,
java.lang.String exclude)
include - comma separated list with includes.exclude - comma separated list with excludes.public java.util.Set<org.apache.maven.artifact.Artifact> filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
artifacts - the set of dependencies to filter.private java.util.Set<org.apache.maven.artifact.Artifact> filterIncludes(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
java.util.List<java.lang.String> theIncludes)
artifacts - List of dependencies.theIncludes - List of types or classifiers to include.private java.util.Set<org.apache.maven.artifact.Artifact> filterExcludes(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
java.util.List<java.lang.String> theExcludes)
depends - List of dependencies.excludes - List of types or classifiers to exclude.protected abstract java.lang.String getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
artifact - artifact to return type or classifier ofpublic void setExcludes(java.lang.String excludeString)
excludeString - comma separated list with excludes.public void setIncludes(java.lang.String includeString)
includeString - comma separated list with includes.public java.util.List<java.lang.String> getExcludes()
public java.util.List<java.lang.String> getIncludes()
protected boolean compareFeatures(java.lang.String lhs,
java.lang.String rhs)
lhs - String artifact's featurerhs - String feature from exclude or include list