aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-consumers
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-consumers
parentcb0e5f8eeab97320617eeb026be5e47d0ab50af8 (diff)
downloadarchiva-de76d28cabf469eefba38a8c533c7d0b7f7e76dc.tar.gz
archiva-de76d28cabf469eefba38a8c533c7d0b7f7e76dc.zip
Adding getroot method for repository
Diffstat (limited to 'archiva-modules/archiva-base/archiva-consumers')
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/MetadataUpdaterConsumer.java2
-rw-r--r--archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/CleanupReleasedSnapshotsRepositoryPurge.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/MetadataUpdaterConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/MetadataUpdaterConsumer.java
index 3cd973e6b..9c0aeb79e 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/MetadataUpdaterConsumer.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/MetadataUpdaterConsumer.java
@@ -125,7 +125,7 @@ public class MetadataUpdaterConsumer
if (this.repository==null) {
throw new RepositoryNotFoundException( "Repository content not found: "+repoConfig.getId() );
}
- this.repositoryDir = repository.getRepository().getAsset( "" );
+ this.repositoryDir = repository.getRepository().getRoot();
this.scanStartTimestamp = System.currentTimeMillis( );
}
catch ( RepositoryException e )
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/CleanupReleasedSnapshotsRepositoryPurge.java b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/CleanupReleasedSnapshotsRepositoryPurge.java
index fe58824a3..f9dca9999 100644
--- a/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/CleanupReleasedSnapshotsRepositoryPurge.java
+++ b/archiva-modules/archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/archiva/consumers/core/repository/CleanupReleasedSnapshotsRepositoryPurge.java
@@ -92,7 +92,7 @@ public class CleanupReleasedSnapshotsRepositoryPurge
{
try
{
- StorageAsset artifactFile = repository.getRepository( ).getAsset( "" ).resolve( path );
+ StorageAsset artifactFile = repository.getRepository( ).getRoot().resolve( path );
BaseRepositoryContentLayout layout = repository.getLayout( BaseRepositoryContentLayout.class );
if ( !artifactFile.exists() )