From: Olivier Lamy Date: Mon, 2 Apr 2012 19:27:14 +0000 (+0000) Subject: take of non absolute path when creating a repository index X-Git-Tag: archiva-1.4-M3~860 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69f3413fcb2dce7afcc6af60d9b9c54a16b52082;p=archiva.git 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 --- 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() )