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
This commit is contained in:
Joakim Erdfelt 2008-02-24 05:06:22 +00:00
parent 2d2619e824
commit 1412e7ffd1
1 changed files with 3 additions and 2 deletions

View File

@ -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 )
{