From 1412e7ffd1a0c2cd5ea4b050057e5200a63848b6 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Sun, 24 Feb 2008 05:06:22 +0000 Subject: MRM-709: Use commons-io instead of Plexus Utils * Changing FileUtils to commons-io equivalent. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@630588 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'archiva-base') diff --git a/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java b/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java index f373946a3..9f8709511 100644 --- a/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java +++ b/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java @@ -19,11 +19,11 @@ package org.apache.maven.archiva.consumers.core; * under the License. */ +import org.apache.commons.io.FileUtils; import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; import org.apache.maven.archiva.consumers.ConsumerException; import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; -import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.io.IOException; @@ -128,7 +128,8 @@ public class AutoRenameConsumer File to = new File( this.repositoryDir, correctedPath ); try { - FileUtils.rename( file, to ); + // Rename the file. + FileUtils.moveFile( file, to ); } catch ( IOException e ) { -- cgit v1.2.3