archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joak...@apache.org
Subject svn commit: r576684 - /maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java
Date Tue, 18 Sep 2007 04:19:53 GMT
Author: joakime
Date: Mon Sep 17 21:19:50 2007
New Revision: 576684

URL: http://svn.apache.org/viewvc?rev=576684&view=rev
Log:
Making pattern matching work in a platform neutral filesystem way.

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

Modified: maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java?rev=576684&r1=576683&r2=576684&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java
(original)
+++ maven/archiva/trunk/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java
Mon Sep 17 21:19:50 2007
@@ -464,10 +464,14 @@
 
     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



Mime
View raw message