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();
}