camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" ...@silverbullet.dk>
Subject RE: build error
Date Wed, 16 Jul 2008 15:28:16 GMT
Cheers will fix it asap

Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: William Tam [mailto:email.wtam@gmail.com] 
Sent: 16. juli 2008 17:20
To: camel-dev
Subject: build error

I am getting a build error in camel-ftp.

[INFO] Compilation failure
C:\repos\apache\camel\trunk\components\camel-ftp\src\main\java\org\apache\camel\
component\file\remote\SftpConsumer.java:[130,26] unreported exception com.jcraft
.jsch.SftpException; must be caught or declared to be thrown

Here is a quick patch.

Index: C:/repos/apache/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
===================================================================
--- C:/repos/apache/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
(revision
677296)
+++ C:/repos/apache/camel/trunk/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
(working
copy)
@@ -126,7 +126,7 @@
         }
     }

-    protected String getFullFileName(ChannelSftp.LsEntry sftpFile)
throws IOException {
+    protected String getFullFileName(ChannelSftp.LsEntry sftpFile)
throws IOException, SftpException {
         return channel.pwd() + "/" + sftpFile.getFilename();
     }

Mime
View raw message