org.apache.maven.shared.artifact.filter
Class AbstractStrictPatternArtifactFilter
java.lang.Object
org.apache.maven.shared.artifact.filter.AbstractStrictPatternArtifactFilter
- All Implemented Interfaces:
- ArtifactFilter
- Direct Known Subclasses:
- StrictPatternExcludesArtifactFilter, StrictPatternIncludesArtifactFilter
public abstract class AbstractStrictPatternArtifactFilter
- extends Object
- implements ArtifactFilter
Filter to include or exclude artifacts from a list of patterns. The artifact pattern syntax is of the form:
[groupId]:[artifactId]:[type]:[version]
Where each pattern segment is optional and supports full and partial *
wildcards. An empty pattern
segment is treated as an implicit wildcard.
For example, org.apache.*
would match all artifacts whose group id started with
org.apache.
, and :::*-SNAPSHOT
would match all snapshot artifacts.
- Version:
- $Id: AbstractStrictPatternArtifactFilter.java 803321 2009-08-11 23:09:24Z aheritier $
- Author:
- Mark Hobson
Constructor Summary |
AbstractStrictPatternArtifactFilter(List patterns,
boolean include)
Creates a new filter that matches the specified artifact patterns and includes or excludes them according to the
specified flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStrictPatternArtifactFilter
public AbstractStrictPatternArtifactFilter(List patterns,
boolean include)
- Creates a new filter that matches the specified artifact patterns and includes or excludes them according to the
specified flag.
- Parameters:
patterns
- the list of artifact patterns to match, as described aboveinclude
- true
to include artifacts that match the patterns, or false
to exclude
them
include
public boolean include(Artifact artifact)
- Specified by:
include
in interface ArtifactFilter
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.