com.atlassian.maven.plugins.licenses
Class ArtifactExclusionFilter

java.lang.Object
  extended by com.atlassian.maven.plugins.licenses.ArtifactExclusionFilter
All Implemented Interfaces:
org.apache.maven.artifact.resolver.filter.ArtifactFilter

public class ArtifactExclusionFilter
extends java.lang.Object
implements org.apache.maven.artifact.resolver.filter.ArtifactFilter

Parses the given list of artifact filter strings into a list of RegexpArfifactFilter objects and the given list of scopes into a list of ArtifactScopeFilter. Artifact that matches any of those filters will be excluded.

Author:
Sherali Karimov

Constructor Summary
ArtifactExclusionFilter(java.util.List artifactFilters, java.util.List scopeFilters)
           
 
Method Summary
 boolean include(org.apache.maven.artifact.Artifact artifactToCheck)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactExclusionFilter

public ArtifactExclusionFilter(java.util.List artifactFilters,
                               java.util.List scopeFilters)
                        throws org.apache.oro.text.regex.MalformedPatternException
Throws:
org.apache.oro.text.regex.MalformedPatternException
Method Detail

include

public boolean include(org.apache.maven.artifact.Artifact artifactToCheck)
Specified by:
include in interface org.apache.maven.artifact.resolver.filter.ArtifactFilter


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.