take care of non absolute directories

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196839 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-11-02 22:31:01 +00:00
parent eb125e9a34
commit b698377ca7
1 changed files with 5 additions and 1 deletions

View File

@ -541,6 +541,10 @@ public class DefaultManagedRepositoryAdmin
if ( indexDir != null && !"".equals( indexDir ) )
{
indexDirectory = new File( repository.getIndexDirectory() );
if ( !indexDirectory.isAbsolute() )
{
indexDirectory = new File( managedRepository, repository.getIndexDirectory() );
}
}
else
{