public abstract class AbstractArtifactFeatureFilter extends AbstractArtifactsFilter
| Constructor and Description |
|---|
AbstractArtifactFeatureFilter(String include,
String exclude)
Constructor for AbstractArtifactFeatureFilter.
|
| 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)
filter.
|
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()
Getter for the field
excludes. |
List<String> |
getIncludes()
Getter for the field
includes. |
void |
setExcludes(String excludeString)
Setter for the field
excludes. |
void |
setIncludes(String includeString)
Setter for the field
includes. |
isArtifactIncludedpublic Set<org.apache.maven.artifact.Artifact> filter(Set<org.apache.maven.artifact.Artifact> artifacts)
filter.
This function determines if filtering needs to be performed. Includes are processed before Excludes.artifacts - Artifactprotected abstract String getArtifactFeature(org.apache.maven.artifact.Artifact artifact)
artifact - artifact to return type or classifier ofpublic void setExcludes(String excludeString)
Setter for the field excludes.
excludeString - comma separated list with excludes.public void setIncludes(String includeString)
Setter for the field includes.
includeString - comma separated list with includes.public List<String> getExcludes()
Getter for the field excludes.
public List<String> getIncludes()
Getter for the field includes.
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.