mirror of https://github.com/apache/archiva.git
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:
parent
cb1bdf9a68
commit
a0673a8c91
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue