diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-09-18 04:19:50 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-09-18 04:19:50 +0000 |
commit | d5ff43184dccd7077200aaab0a354177bb80e131 (patch) | |
tree | 75d0affe327075bb92c6bb0652589abff44bc398 /archiva-base/archiva-repository-layer | |
parent | b1b4229880f1828c24abd5e3d0871c89cd53ee00 (diff) | |
download | archiva-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.java | 4 |
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 |