Class PatternExclusionsFilter
- java.lang.Object
-
- org.apache.maven.shared.artifact.filter.resolve.PatternExclusionsFilter
-
- All Implemented Interfaces:
TransformableFilter
public class PatternExclusionsFilter extends java.lang.Object implements TransformableFilter
A simple filter to exclude artifacts from a list of patterns. The artifact pattern syntax is of the form:[groupId]:[artifactId]:[extension]:[version]
Where each pattern segment is optional and supports full and partial
*
wildcards. An empty pattern segment is treated as an implicit wildcard. Version can be a range in case aVersionScheme
is specified.For example,
org.apache.*
would match all artifacts whose group id started withorg.apache.
, and:::*-SNAPSHOT
would match all snapshot artifacts.- Since:
- 3.0
- Author:
- Robert Scholte
- See Also:
PatternExclusionsDependencyFilter
,PatternExclusionsDependencyFilter
,VersionScheme
,VersionScheme
-
-
Constructor Summary
Constructors Constructor Description PatternExclusionsFilter(java.util.Collection<java.lang.String> excludes)
The default constructor specifying a collection of pattern based keys which must be excluded.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getExcludes()
Get the excludes<T> T
transform(FilterTransformer<T> transformer)
Transform this filter to a tool specific implementation
-
-
-
Method Detail
-
getExcludes
public final java.util.Collection<java.lang.String> getExcludes()
Get the excludes- Returns:
- the excluded keys, never
null
-
transform
public <T> T transform(FilterTransformer<T> transformer)
Transform this filter to a tool specific implementation- Specified by:
transform
in interfaceTransformableFilter
- Type Parameters:
T
- the interface of the tool specific filter- Parameters:
transformer
- the transformer, must not benull
- Returns:
- the transformed value, never
null
-
-