]> source.dussan.org Git - archiva.git/commitdiff
avoid creating tempdirectory in the repository folder
authorOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 15:01:00 +0000 (15:01 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 15:01:00 +0000 (15:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308374 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/archiva/proxy/DefaultRepositoryProxyConnectors.java

index aa72a8b1a161908d5f2d6733eaf44e8fdc518554..c4614bfe29e9b4ebf9b49c6d9357620d2121e023 100644 (file)
@@ -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;