You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/04/09 09:31:33 UTC
[camel-kamelets] branch master updated (b681ee3 -> e535b99)
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
from b681ee3 FTP/FTPS and SFTP: Don't convert body to String, leave as-is or at least try to convert to inputstream - FTP Kamelet
new 1fb2154 FTP/FTPS and SFTP: Don't convert body to String, leave as-is or at least try to convert to inputstream - SFTP Kamelet
new e535b99 FTP/FTPS and SFTP: Don't convert body to String, leave as-is or at least convert to InputStream - SFTP Kamelet
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
sftp-source.kamelet.yaml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
[camel-kamelets] 01/02: FTP/FTPS and SFTP: Don't convert body to
String, leave as-is or at least try to convert to inputstream - SFTP Kamelet
Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 1fb21548797273ba45bf457df8821a4a670f159f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 8 18:13:59 2021 +0200
FTP/FTPS and SFTP: Don't convert body to String, leave as-is or at least try to convert to inputstream - SFTP Kamelet
Fixes #121
---
sftp-source.kamelet.yaml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/sftp-source.kamelet.yaml b/sftp-source.kamelet.yaml
index 26104ac..0f92931 100644
--- a/sftp-source.kamelet.yaml
+++ b/sftp-source.kamelet.yaml
@@ -53,6 +53,11 @@ spec:
description: If a directory, will look for files in all the sub-directories as well.
type: boolean
default: false
+ idempotent:
+ title: Idempotency
+ description: Skip already processed files.
+ type: boolean
+ default: true
flow:
from:
uri: "sftp:{{username}}@{{host}}:{{port}}/{{directoryName}}"
@@ -60,7 +65,6 @@ spec:
password: "{{password}}"
passiveMode: "{{passiveMode}}"
recursive: "{{recursive}}"
+ idempotent: "{{idempotent}}"
steps:
- - convert-body-to:
- type: "java.lang.String"
- to: "kamelet:sink"
[camel-kamelets] 02/02: FTP/FTPS and SFTP: Don't convert body to
String, leave as-is or at least convert to InputStream - SFTP Kamelet
Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit e535b997a86b7da0eb04c08a5f82bbbf6448835e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Apr 8 18:50:57 2021 +0200
FTP/FTPS and SFTP: Don't convert body to String, leave as-is or at least convert to InputStream - SFTP Kamelet
---
sftp-source.kamelet.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sftp-source.kamelet.yaml b/sftp-source.kamelet.yaml
index 0f92931..a7d376f 100644
--- a/sftp-source.kamelet.yaml
+++ b/sftp-source.kamelet.yaml
@@ -67,4 +67,6 @@ spec:
recursive: "{{recursive}}"
idempotent: "{{idempotent}}"
steps:
+ - convert-body-to:
+ type: "java.io.InputStream"
- to: "kamelet:sink"