diff options
author | Olivier Lamy <olamy@apache.org> | 2012-04-02 15:01:28 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-04-02 15:01:28 +0000 |
commit | 599a0a867770e2c8e10c812e6726e242273ebd5a (patch) | |
tree | 0ae70bd19dad47a5be46ba2c3fe266db7125cc27 /archiva-modules/archiva-base/archiva-proxy/src | |
parent | a0673a8c919c52fed65b49b5a5eda59cd023add0 (diff) | |
download | archiva-599a0a867770e2c8e10c812e6726e242273ebd5a.tar.gz archiva-599a0a867770e2c8e10c812e6726e242273ebd5a.zip |
use guava to create temp directory
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308375 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-proxy/src')
-rw-r--r-- | archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java index c4614bfe2..d51afc5ae 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java @@ -20,6 +20,7 @@ package org.apache.archiva.proxy; */ import com.google.common.collect.Lists; +import com.google.common.io.Files; import org.apache.archiva.admin.model.RepositoryAdminException; import org.apache.archiva.admin.model.beans.NetworkProxy; import org.apache.archiva.admin.model.networkproxy.NetworkProxyAdmin; @@ -1009,6 +1010,7 @@ public class DefaultRepositoryProxyConnectors private File createWorkingDirectory( ManagedRepositoryContent repository ) { // TODO: This is ugly - lets actually clean this up when we get the new repository api + /* try { File tmpDir = File.createTempFile( ".workingdirectory", null ); @@ -1019,7 +1021,8 @@ public class DefaultRepositoryProxyConnectors catch ( IOException e ) { throw new RuntimeException( "Could not create working directory for this request", e ); - } + } */ + return Files.createTempDir(); } /** |