aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-base/archiva-repository-layer
diff options
context:
space:
mode:
authorJoakim Erdfelt <joakime@apache.org>2007-09-18 04:19:50 +0000
committerJoakim Erdfelt <joakime@apache.org>2007-09-18 04:19:50 +0000
commitd5ff43184dccd7077200aaab0a354177bb80e131 (patch)
tree75d0affe327075bb92c6bb0652589abff44bc398 /archiva-base/archiva-repository-layer
parentb1b4229880f1828c24abd5e3d0871c89cd53ee00 (diff)
downloadarchiva-d5ff43184dccd7077200aaab0a354177bb80e131.tar.gz
archiva-d5ff43184dccd7077200aaab0a354177bb80e131.zip
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
Diffstat (limited to 'archiva-base/archiva-repository-layer')
-rw-r--r--archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java
index b9ea5039d..ed3d6b639 100644
--- a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java
+++ b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/MetadataTools.java
@@ -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