Author: epunzalan
Date: Fri Feb 3 18:33:50 2006
New Revision: 374819
URL: http://svn.apache.org/viewcvs?rev=374819&view=rev
Log:
Added ResourceNotFoundException in the method signatures instead of
ProxyException when a remote file isn't found in any of the repositories.
Modified:
maven/repository-manager/trunk/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java
Modified:
maven/repository-manager/trunk/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java
URL:
http://svn.apache.org/viewcvs/maven/repository-manager/trunk/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java?rev=374819&r1=374818&r2=374819&view=diff
==============================================================================
---
maven/repository-manager/trunk/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java
(original)
+++
maven/repository-manager/trunk/maven-repository-proxy/src/main/java/org/apache/maven/repository/proxy/DefaultProxyManager.java
Fri Feb 3 18:33:50 2006
@@ -133,13 +133,13 @@
}
private File getRepositoryFile( String path )
- throws ProxyException
+ throws ResourceDoesNotExistException, ProxyException
{
return getRepositoryFile( path, true );
}
private File getRepositoryFile( String path, boolean useChecksum )
- throws ProxyException
+ throws ResourceDoesNotExistException, ProxyException
{
ArtifactRepository cache = config.getRepositoryCache();
File target = new File( cache.getBasedir(), path );
@@ -214,7 +214,7 @@
}
}
- throw new ProxyException( "Could not find " + path + " in any of the
repositories." );
+ throw new ResourceDoesNotExistException( "Could not find " + path + "
in any of the repositories." );
}
private Map prepareChecksums( Wagon wagon )