diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-09-08 21:05:34 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-09-22 00:09:54 +0200 |
commit | b072f6921df0b59843f9c411b292b467dbe0f01a (patch) | |
tree | c3274836bbff9a419d930aa0a470e0d4b0027d3d /archiva-modules/archiva-web/archiva-webdav/src/test | |
parent | 0fef7e9c5ff5ceed2f8cb4414295009a5816fc46 (diff) | |
download | archiva-b072f6921df0b59843f9c411b292b467dbe0f01a.tar.gz archiva-b072f6921df0b59843f9c411b292b467dbe0f01a.zip |
Proxy changes
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav/src/test')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/OverridingRepositoryProxyHandler.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/OverridingRepositoryProxyHandler.java b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/OverridingRepositoryProxyHandler.java index 1343c9452..9f7c5518f 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/OverridingRepositoryProxyHandler.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/OverridingRepositoryProxyHandler.java @@ -21,13 +21,11 @@ package org.apache.archiva.webdav; import org.apache.archiva.proxy.maven.MavenRepositoryProxyHandler; import org.apache.archiva.proxy.model.ProxyFetchResult; -import org.apache.archiva.repository.ManagedRepositoryContent; +import org.apache.archiva.repository.ManagedRepository; import org.apache.archiva.repository.storage.StorageAsset; import org.apache.commons.io.FileUtils; import java.io.IOException; -import java.nio.file.Path; -import java.nio.file.Paths; class OverridingRepositoryProxyHandler extends MavenRepositoryProxyHandler @@ -39,9 +37,9 @@ class OverridingRepositoryProxyHandler } @Override - public ProxyFetchResult fetchMetadataFromProxies(ManagedRepositoryContent repository, String logicalPath ) + public ProxyFetchResult fetchMetadataFromProxies( ManagedRepository repository, String logicalPath ) { - StorageAsset target = repository.getRepository().getAsset( logicalPath ); + StorageAsset target = repository.getAsset( logicalPath ); try { FileUtils.copyFile( archivaDavResourceFactoryTest.getProjectBase().resolve( "target/test-classes/maven-metadata.xml" ).toFile(), target.getFilePath().toFile() ); |