diff options
author | Joakim Erdfelt <joakime@apache.org> | 2008-03-14 05:39:17 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2008-03-14 05:39:17 +0000 |
commit | 97bffde52d2745b3018801ce75e317177fa8fe96 (patch) | |
tree | 1a1211d94b9af969d3aad6bb3ee37f766749c4e2 /archiva-base | |
parent | fb46349482ae5249bf1bfce05fec9ab0d32ecebc (diff) | |
download | archiva-97bffde52d2745b3018801ce75e317177fa8fe96.tar.gz archiva-97bffde52d2745b3018801ce75e317177fa8fe96.zip |
MRM-710: Use commons-lang instead of Plexus Utils
Replacing plexus utils StringUtils with FilenameUtils.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@636997 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base')
-rw-r--r-- | archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/functors/ConsumerWantsFilePredicate.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/functors/ConsumerWantsFilePredicate.java b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/functors/ConsumerWantsFilePredicate.java index 29e3ef419..97e97b407 100644 --- a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/functors/ConsumerWantsFilePredicate.java +++ b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/functors/ConsumerWantsFilePredicate.java @@ -20,10 +20,10 @@ package org.apache.maven.archiva.repository.scanner.functors; */ import org.apache.commons.collections.Predicate; +import org.apache.commons.io.FilenameUtils; import org.apache.maven.archiva.common.utils.BaseFile; import org.apache.maven.archiva.consumers.RepositoryContentConsumer; import org.codehaus.plexus.util.SelectorUtils; -import org.codehaus.plexus.util.StringUtils; import java.util.List; @@ -51,7 +51,7 @@ public class ConsumerWantsFilePredicate if ( object instanceof RepositoryContentConsumer ) { RepositoryContentConsumer consumer = (RepositoryContentConsumer) object; - if ( wantsFile( consumer, StringUtils.replace( basefile.getRelativePath(), "\\", "/" ) ) ) + if ( wantsFile( consumer, FilenameUtils.separatorsToUnix( basefile.getRelativePath() ) ) ) { satisfies = true; |