]> source.dussan.org Git - archiva.git/commitdiff
[MRM-709] Use commons-io instead of Plexus Utils.
authorOlivier Lamy <olamy@apache.org>
Tue, 3 Apr 2012 16:39:26 +0000 (16:39 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 3 Apr 2012 16:39:26 +0000 (16:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1309029 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/archiva/proxy/AbstractProxyTestCase.java
archiva-modules/archiva-scheduler/archiva-scheduler-repository/pom.xml
archiva-modules/archiva-web/archiva-webapp-js/pom.xml
archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/action/UploadAction.java

index 2271b1c53adddb920b0c8e9657b4313adf463ca2..a1f493840b786d1652e96c94ccdb1e4312043ec8 100644 (file)
@@ -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;
index 7097d08b583b890338003e7bd985f1e32330368d..208819b3b369074fa6e2022a4ffcc75afa61d5fd 100644 (file)
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-scheduler-api</artifactId>
     </dependency>
+    <dependency>
+      <groupId>commons-io</groupId>
+      <artifactId>commons-io</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.codehaus.redback.components</groupId>
       <artifactId>spring-quartz</artifactId>
index 1ba284c814ea3845db24e14400ef71f5e1054f51..12fe1229d61464ec0df5589c1cdcd47cbccf8a8d 100644 (file)
       </exclusions>
     </dependency>
 
+    <dependency>
+      <groupId>commons-io</groupId>
+      <artifactId>commons-io</artifactId>
+    </dependency>
+
     <dependency>
       <groupId>org.apache.velocity</groupId>
       <artifactId>velocity</artifactId>
index 95712a8918278da847281ecf1af0bdb5ef240cef..d7bc7ef0217bd8a224a9549d9d913e2d5a9274f9 100644 (file)
@@ -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;
index fccc0ffd03fd94abc9aa0339c3da6e9146d576dd..853696b8f111f7552fe42a9c9c9f0207f5730c59 100644 (file)
@@ -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;