From de76d28cabf469eefba38a8c533c7d0b7f7e76dc Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Thu, 4 Jun 2020 20:12:32 +0200 Subject: Adding getroot method for repository --- .../java/org/apache/archiva/mock/ArchivaIndexManagerMock.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archiva-modules/archiva-scheduler') 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 ) ) { -- cgit v1.2.3 ion> JGit, the Java implementation of git: https://github.com/eclipse-jgit/jgitwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/org.eclipse.jgit.feature/.project
blob: aaee80f000b507aa1510d68255ef14dd956d6f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17