]> source.dussan.org Git - archiva.git/commitdiff
take of non absolute path when creating a repository index
authorOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 19:27:14 +0000 (19:27 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 2 Apr 2012 19:27:14 +0000 (19:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308493 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java

index 5a7c7cd1f2d79f89a4f55d22108c4dc9a8ead31d..4dee8b409cfa9dc385889aa36ead6cf7e8ed795a 100644 (file)
@@ -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() )