diff options
author | Joakim Erdfelt <joakime@apache.org> | 2008-02-24 05:06:22 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2008-02-24 05:06:22 +0000 |
commit | 1412e7ffd1a0c2cd5ea4b050057e5200a63848b6 (patch) | |
tree | 4bc8f418388ee66acbecb4c72c9d71f4eeef9d2d /archiva-base | |
parent | 2d2619e824c65eb2d1c9faa1e384f75d57475771 (diff) | |
download | archiva-1412e7ffd1a0c2cd5ea4b050057e5200a63848b6.tar.gz archiva-1412e7ffd1a0c2cd5ea4b050057e5200a63848b6.zip |
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
Diffstat (limited to 'archiva-base')
-rw-r--r-- | archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/AutoRenameConsumer.java | 5 |
1 files changed, 3 insertions, 2 deletions
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 ) { |