mirror of
https://github.com/apache/archiva.git
synced 2025-02-06 10:09:32 +00:00
Create repository directory if it doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@510575 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ee25ad66f2
commit
20f091cfe5
@ -100,8 +100,15 @@ public void initServers( ServletConfig servletConfig )
|
||||
while ( itrepos.hasNext() )
|
||||
{
|
||||
RepositoryConfiguration repoConfig = (RepositoryConfiguration) itrepos.next();
|
||||
DavServerComponent server =
|
||||
createServer( repoConfig.getUrlName(), new File( repoConfig.getDirectory() ), servletConfig );
|
||||
File repoDir = new File( repoConfig.getDirectory() );
|
||||
|
||||
if ( !repoDir.exists() )
|
||||
{
|
||||
repoDir.mkdirs();
|
||||
}
|
||||
|
||||
DavServerComponent server = createServer( repoConfig.getUrlName(), repoDir, servletConfig );
|
||||
|
||||
server.addListener( audit );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user