diff options
author | Martin Stockhammer <martin_s@apache.org> | 2020-06-04 20:12:32 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2020-06-04 20:12:32 +0200 |
commit | de76d28cabf469eefba38a8c533c7d0b7f7e76dc (patch) | |
tree | 8df9eee03e98fa5400b9d75e41001dd89b123394 /archiva-modules/archiva-scheduler | |
parent | cb0e5f8eeab97320617eeb026be5e47d0ab50af8 (diff) | |
download | archiva-de76d28cabf469eefba38a8c533c7d0b7f7e76dc.tar.gz archiva-de76d28cabf469eefba38a8c533c7d0b7f7e76dc.zip |
Adding getroot method for repository
Diffstat (limited to 'archiva-modules/archiva-scheduler')
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/ArchivaIndexManagerMock.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/ArchivaIndexManagerMock.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/ArchivaIndexManagerMock.java index 6182be541..76199e1e2 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/ArchivaIndexManagerMock.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository/src/test/java/org/apache/archiva/mock/ArchivaIndexManagerMock.java @@ -510,11 +510,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( ) ) ) { @@ -551,7 +551,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 ); @@ -601,7 +601,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 ) ) { |