From a0673a8c919c52fed65b49b5a5eda59cd023add0 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 2 Apr 2012 15:01:00 +0000 Subject: [PATCH] avoid creating tempdirectory in the repository folder git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308374 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/proxy/DefaultRepositoryProxyConnectors.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 aa72a8b1a..c4614bfe2 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 @@ -1000,7 +1000,7 @@ public class DefaultRepositoryProxyConnectors } /** - * Creates a working directory in the repository root for this request + * Creates a working directory * * @param repository * @return file location of working directory @@ -1011,7 +1011,7 @@ public class DefaultRepositoryProxyConnectors // TODO: This is ugly - lets actually clean this up when we get the new repository api try { - File tmpDir = File.createTempFile( ".workingdirectory", null, new File( repository.getRepoRoot() ) ); + File tmpDir = File.createTempFile( ".workingdirectory", null ); tmpDir.delete(); tmpDir.mkdirs(); return tmpDir;