avoid creating tempdirectory in the repository folder

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-04-02 15:01:00 +00:00
parent cb1bdf9a68
commit a0673a8c91
1 changed files with 2 additions and 2 deletions

View 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 * @param repository
* @return file location of working directory * @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 // TODO: This is ugly - lets actually clean this up when we get the new repository api
try try
{ {
File tmpDir = File.createTempFile( ".workingdirectory", null, new File( repository.getRepoRoot() ) ); File tmpDir = File.createTempFile( ".workingdirectory", null );
tmpDir.delete(); tmpDir.delete();
tmpDir.mkdirs(); tmpDir.mkdirs();
return tmpDir; return tmpDir;