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
This commit is contained in:
Joakim Erdfelt 2008-03-14 05:39:17 +00:00
parent fb46349482
commit 97bffde52d
1 changed files with 2 additions and 2 deletions

View File

@ -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;