aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-admin
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-04 20:12:32 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-04 20:12:32 +0200
commitde76d28cabf469eefba38a8c533c7d0b7f7e76dc (patch)
tree8df9eee03e98fa5400b9d75e41001dd89b123394 /archiva-modules/archiva-base/archiva-repository-admin
parentcb0e5f8eeab97320617eeb026be5e47d0ab50af8 (diff)
downloadarchiva-de76d28cabf469eefba38a8c533c7d0b7f7e76dc.tar.gz
archiva-de76d28cabf469eefba38a8c533c7d0b7f7e76dc.zip
Adding getroot method for repository
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-admin')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java
index 31b115ae5..e2255ee42 100644
--- a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java
+++ b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/java/org/apache/archiva/admin/mock/ArchivaIndexManagerMock.java
@@ -522,11 +522,11 @@ public class ArchivaIndexManagerMock implements ArchivaIndexManager {
private StorageAsset getIndexPath( Repository repo) throws IOException {
IndexCreationFeature icf = repo.getFeature(IndexCreationFeature.class).get();
- Path repoDir = repo.getAsset("").getFilePath();
+ Path repoDir = repo.getRoot().getFilePath();
URI indexDir = icf.getIndexPath();
String indexPath = indexDir.getPath();
Path indexDirectory = null;
- FilesystemStorage filesystemStorage = (FilesystemStorage) repo.getAsset("").getStorage();
+ FilesystemStorage filesystemStorage = (FilesystemStorage) repo.getRoot().getStorage();
if ( ! StringUtils.isEmpty(indexDir.toString( ) ) )
{
@@ -563,7 +563,7 @@ public class ArchivaIndexManagerMock implements ArchivaIndexManager {
// create remote repository path
- Path repoDir = remoteRepository.getAsset("").getFilePath();
+ Path repoDir = remoteRepository.getRoot().getFilePath();
if ( !Files.exists( repoDir ) )
{
Files.createDirectories( repoDir );
@@ -613,7 +613,7 @@ public class ArchivaIndexManagerMock implements ArchivaIndexManager {
IndexingContext context;
// take care first about repository location as can be relative
- Path repositoryDirectory = repository.getAsset("").getFilePath();
+ Path repositoryDirectory = repository.getRoot().getFilePath();
if ( !Files.exists( repositoryDirectory ) )
{