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:
Joakim Erdfelt 2007-09-18 04:19:50 +00:00
parent b1b4229880
commit d5ff43184d
1 changed files with 4 additions and 0 deletions

View File

@ -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