You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/05 15:43:28 UTC

[camel-kamelets] branch ftp-fix created (now 3854943)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch ftp-fix
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.


      at 3854943  FTP Source Kamelet: Add passiveMode, recursive and convert body to String

This branch includes the following new commits:

     new 3854943  FTP Source Kamelet: Add passiveMode, recursive and convert body to String

The 1 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.



[camel-kamelets] 01/01: FTP Source Kamelet: Add passiveMode, recursive and convert body to String

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch ftp-fix
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3854943b49ac8d79db650ff0eb050bbe3e20e0b3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 5 16:42:14 2021 +0100

    FTP Source Kamelet: Add passiveMode, recursive and convert body to String
---
 ftp-source.kamelet.yaml | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/ftp-source.kamelet.yaml b/ftp-source.kamelet.yaml
index 935b3d4..f3e2378 100644
--- a/ftp-source.kamelet.yaml
+++ b/ftp-source.kamelet.yaml
@@ -39,9 +39,19 @@ spec:
         x-descriptors:
         - urn:alm:descriptor:com.tectonic.ui:password
       directoryName:
-        title: directoryName
+        title: Directory Name
         description: The starting directory
         type: string
+      passiveMode:
+        title: Passive Mode
+        description: Sets passive mode connection
+        type: boolean
+        default: false
+      recursive:
+        title: Recursive
+        description: If a directory, will look for files in all the sub-directories as well.
+        type: boolean
+        default: false
   types:
     out:
       mediaType: application/json
@@ -52,5 +62,9 @@ spec:
       uri: "ftp:{{username}}@{{host}}:{{port}}/{{directoryName}}"
       parameters:
         password: "{{password}}"
+        passiveMode: "{{passiveMode}}"
+        recursive: "{{recursive}}"
       steps:
+      - convert-body-to:
+          type: "java.lang.String"
       - to: "kamelet:sink"