]> source.dussan.org Git - archiva.git/commitdiff
Making pattern matching work in a platform neutral filesystem way.
authorJoakim Erdfelt <joakime@apache.org>
Tue, 18 Sep 2007 04:19:50 +0000 (04:19 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Tue, 18 Sep 2007 04:19:50 +0000 (04:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@576684 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java

index b9ea5039dba34c58593a1c14718125c01357d7e2..ed3d6b639af6814b175a395b3970f02ed504af1a 100644 (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