From b698377ca760cdabda8f0bbf5dd6ba4afd364fc7 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 2 Nov 2011 22:31:01 +0000 Subject: [PATCH] take care of non absolute directories git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196839 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/managed/DefaultManagedRepositoryAdmin.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java index 9f2367490..f1ad9c598 100644 --- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java +++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java @@ -515,7 +515,7 @@ public class DefaultManagedRepositoryAdmin } configuration.addManagedRepository( repository ); - + } public IndexingContext createIndexContext( ManagedRepository repository ) @@ -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 {