Class ArtifactIdFilter
- java.lang.Object
-
- org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
-
- org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter
-
- org.apache.maven.shared.artifact.filter.collection.ArtifactIdFilter
-
- All Implemented Interfaces:
ArtifactsFilter
public class ArtifactIdFilter extends AbstractArtifactFeatureFilter
Filter on ArtifactId name- Since:
- 2.0-alpha-2
- Author:
- clove
-
-
Constructor Summary
Constructors Constructor Description ArtifactIdFilter(java.lang.String include, java.lang.String exclude)
Will setup super with 'ArtifactId' as the filterType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getArtifactFeature(Artifact artifact)
Should return the type or classifier of the given artifact, so that we can filter it-
Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactFeatureFilter
compareFeatures, filter, getExcludes, getIncludes, setExcludes, setIncludes
-
Methods inherited from class org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
isArtifactIncluded
-
-
-
-
Constructor Detail
-
ArtifactIdFilter
public ArtifactIdFilter(java.lang.String include, java.lang.String exclude)
Will setup super with 'ArtifactId' as the filterType- Parameters:
include
- comma separated list of artifactIds to include, may benull
exclude
- comma separated list of artifactIds to exclude, may benull
-
-
Method Detail
-
getArtifactFeature
protected java.lang.String getArtifactFeature(Artifact artifact)
Description copied from class:AbstractArtifactFeatureFilter
Should return the type or classifier of the given artifact, so that we can filter it- Specified by:
getArtifactFeature
in classAbstractArtifactFeatureFilter
- Parameters:
artifact
- artifact to return type or classifier of- Returns:
- type or classifier
-
-