mirror of https://github.com/apache/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
This commit is contained in:
parent
eab23f6907
commit
bda662451a
|
@ -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;
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
<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>
|
||||
|
|
|
@ -140,6 +140,11 @@
|
|||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.velocity</groupId>
|
||||
<artifactId>velocity</artifactId>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue