mirror of
https://github.com/apache/archiva.git
synced 2025-02-22 10:17:25 +00:00
PR: MRM-43
Added ResourceDoesNotExistException in interface and implementation git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@374824 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5a63d9fc3b
commit
70e1d9ddb3
@ -69,7 +69,7 @@ public DefaultProxyManager( ProxyConfiguration configuration )
|
||||
}
|
||||
|
||||
public File get( String path )
|
||||
throws ProxyException
|
||||
throws ProxyException, ResourceDoesNotExistException
|
||||
{
|
||||
//@todo use wagon for cache use file:// as URL
|
||||
String cachePath = config.getRepositoryCachePath();
|
||||
@ -82,7 +82,7 @@ public File get( String path )
|
||||
}
|
||||
|
||||
public File getRemoteFile( String path )
|
||||
throws ProxyException
|
||||
throws ProxyException, ResourceDoesNotExistException
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -109,10 +109,6 @@ else if ( path.endsWith( ".md5" ) || path.endsWith( ".sha1" ) )
|
||||
{
|
||||
throw new ProxyException( e.getMessage(), e );
|
||||
}
|
||||
catch ( ResourceDoesNotExistException e )
|
||||
{
|
||||
throw new ProxyException( e.getMessage(), e );
|
||||
}
|
||||
}
|
||||
|
||||
private File getArtifactFile( Artifact artifact )
|
||||
|
@ -16,6 +16,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import org.apache.maven.wagon.ResourceDoesNotExistException;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
@ -24,8 +26,8 @@
|
||||
public interface ProxyManager
|
||||
{
|
||||
public File get( String path )
|
||||
throws ProxyException;
|
||||
throws ProxyException, ResourceDoesNotExistException;
|
||||
|
||||
public File getRemoteFile( String path )
|
||||
throws ProxyException;
|
||||
throws ProxyException, ResourceDoesNotExistException;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user