From 69f3413fcb2dce7afcc6af60d9b9c54a16b52082 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 2 Apr 2012 19:27:14 +0000 Subject: [PATCH] take of non absolute path when creating a repository index git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308493 13f79535-47bb-0310-9956-ffa450edef68 --- .../repository/managed/DefaultManagedRepositoryAdmin.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 5a7c7cd1f..4dee8b409 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 @@ -573,6 +573,13 @@ public class DefaultManagedRepositoryAdmin else { indexDirectory = new File( managedRepository, ".indexer" ); + if ( !managedRepository.isAbsolute() ) + { + indexDirectory = new File( + getRegistry().getString( "appserver.base" ) + File.separatorChar + "repositories" + + File.separatorChar + + repository.getLocation(), ".indexer" ); + } } if ( !indexDirectory.exists() ) -- 2.39.5