From: Olivier Lamy Date: Tue, 3 Apr 2012 16:39:26 +0000 (+0000) Subject: [MRM-709] Use commons-io instead of Plexus Utils. X-Git-Tag: archiva-1.4-M3~849 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bda662451a769f9391b3cb6ccf4bc01cbc19790f;p=archiva.git [MRM-709] Use commons-io instead of Plexus Utils. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1309029 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java index 2271b1c53..a1f493840 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java @@ -35,11 +35,11 @@ import org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy; import org.apache.archiva.policies.ReleasesPolicy; import org.apache.archiva.policies.SnapshotsPolicy; import org.apache.archiva.repository.ManagedRepositoryContent; +import org.apache.commons.io.FileUtils; import org.apache.commons.lang.ArrayUtils; import org.apache.maven.index.NexusIndexer; import org.apache.maven.index.context.IndexingContext; import org.apache.maven.wagon.Wagon; -import org.codehaus.plexus.util.FileUtils; import org.easymock.ArgumentsMatcher; import org.easymock.MockControl; import org.junit.After; diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml index 7097d08b5..208819b3b 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml @@ -32,6 +32,10 @@ org.apache.archiva archiva-scheduler-api + + commons-io + commons-io + org.codehaus.redback.components spring-quartz diff --git a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml index 1ba284c81..12fe1229d 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml @@ -140,6 +140,11 @@ + + commons-io + commons-io + + org.apache.velocity velocity diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java b/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java index 95712a891..d7bc7ef02 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java @@ -56,7 +56,6 @@ import org.apache.cxf.jaxrs.ext.multipart.MultipartBody; import org.apache.maven.model.Model; import org.apache.maven.model.io.xpp3.MavenXpp3Writer; import org.codehaus.plexus.taskqueue.TaskQueueException; -import org.codehaus.plexus.util.IOUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; @@ -499,7 +498,7 @@ public class DefaultFileUploadService } finally { - IOUtil.close( w ); + IOUtils.closeQuietly( w ); } return pomFile; diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java index fccc0ffd0..853696b8f 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java @@ -55,7 +55,6 @@ import org.apache.commons.lang.StringUtils; import org.apache.maven.model.Model; import org.apache.maven.model.io.xpp3.MavenXpp3Writer; import org.codehaus.plexus.taskqueue.TaskQueueException; -import org.codehaus.plexus.util.IOUtil; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; @@ -499,7 +498,7 @@ public class UploadAction } finally { - IOUtil.close( w ); + IOUtils.closeQuietly( w ); } return pomFile;