public boolean match ( Artifact artifact ) throws InvalidVersionSpecificationException { for ( Pattern pattern : patterns ) { if ( pattern . match ( artifact ) ) { for ( Pattern ignorePattern : ignorePatterns ) { if ( ignorePattern . match ( artifact ) ) { return false ; } } return true ; } } return false ; }
Check if artifact matches patterns .