throw new TransferFailedException( "Resource to deploy not found: " + e.getMessage(), e );
logger.debug( "SHA1 not found, trying MD5: " + sha1TryException.getMessage() );
@Override public InputStream retrieve( String name ) throws IOException, FileNotFoundException { try { log.info( "index update retrieve file, name:{}", name ); Path file = tempIndexDirectory.resolve( name ); Files.deleteIfExists( file ); file.toFile( ).deleteOnExit( ); wagon.get( addParameters( name, remoteRepository ), file.toFile( ) ); return Files.newInputStream( file ); } catch ( AuthorizationException | TransferFailedException e ) { throw new IOException( e.getMessage( ), e ); } catch ( ResourceDoesNotExistException e ) { FileNotFoundException fnfe = new FileNotFoundException( e.getMessage( ) ); fnfe.initCause( e ); throw fnfe; } }
@Override public InputStream retrieve( String name ) throws IOException, FileNotFoundException { try { log.info( "index update retrieve file, name:{}", name ); Path file = tempIndexDirectory.resolve( name ); Files.deleteIfExists( file ); file.toFile().deleteOnExit(); wagon.get( addParameters( name, this.remoteRepository ), file.toFile() ); return Files.newInputStream( file ); } catch ( AuthorizationException | TransferFailedException e ) { throw new IOException( e.getMessage(), e ); } catch ( ResourceDoesNotExistException e ) { FileNotFoundException fnfe = new FileNotFoundException( e.getMessage() ); fnfe.initCause( e ); throw fnfe; } }
model.toAbsolutePath(), remoteRepository.getId(), e.getMessage() );
model.getAbsolutePath(), remoteRepository.getId(), e.getMessage() );
"Resource [" + remoteRepository.getURL() + "/" + remotePath + "] does not exist: " + e.getMessage(), e );
throw new DownloadFailedException( url, "Download failed. Reason: " + e.getMessage(), e );
"Resource [" + remoteRepository.getURL() + "/" + remotePath + "] does not exist: " + e.getMessage(), e );
throw new TransferFailedException( "Resource to deploy not found: " + e.getMessage(), e );