mirror of https://github.com/apache/archiva.git
Making pattern matching work in a platform neutral filesystem way.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@576684 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b1b4229880
commit
d5ff43184d
|
@ -464,10 +464,14 @@ public class MetadataTools
|
|||
|
||||
private boolean matchesArtifactPattern( String relativePath )
|
||||
{
|
||||
// Correct the slash pattern.
|
||||
relativePath = relativePath.replace( '\\', '/' );
|
||||
|
||||
Iterator<String> it = this.artifactPatterns.iterator();
|
||||
while ( it.hasNext() )
|
||||
{
|
||||
String pattern = it.next();
|
||||
|
||||
if ( SelectorUtils.matchPath( pattern, relativePath, false ) )
|
||||
{
|
||||
// Found match
|
||||
|
|
Loading…
Reference in New Issue