summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-11-02 22:31:01 +0000
committerOlivier Lamy <olamy@apache.org>2011-11-02 22:31:01 +0000
commitb698377ca760cdabda8f0bbf5dd6ba4afd364fc7 (patch)
treef9fe61b6474414b4c272b4c5f7d3e61334029260 /archiva-modules/archiva-base
parenteb125e9a34a8b2651269916513a4cf595bf03223 (diff)
downloadarchiva-b698377ca760cdabda8f0bbf5dd6ba4afd364fc7.tar.gz
archiva-b698377ca760cdabda8f0bbf5dd6ba4afd364fc7.zip
take care of non absolute directories
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1196839 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java6
1 files changed, 5 insertions, 1 deletions
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
{