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/04/09 14:08:20 UTC

[camel-kamelets] branch ftps-up created (now 2e32791)

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

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


      at 2e32791  FTP/FTPS and SFTP Source Kamelet: Add an header containing the filename named file and ce-file - FTPS Kamelet

This branch includes the following new commits:

     new 2e32791  FTP/FTPS and SFTP Source Kamelet: Add an header containing the filename named file and ce-file - FTPS Kamelet

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/FTPS and SFTP Source Kamelet: Add an header containing the filename named file and ce-file - FTPS Kamelet

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

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

commit 2e32791a244917136514266c01595b9b1015a1f2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Apr 9 16:07:44 2021 +0200

    FTP/FTPS and SFTP Source Kamelet: Add an header containing the filename named file and ce-file - FTPS Kamelet
---
 ftp-source.kamelet.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ftp-source.kamelet.yaml b/ftp-source.kamelet.yaml
index 5affce7..99cafcc 100644
--- a/ftp-source.kamelet.yaml
+++ b/ftp-source.kamelet.yaml
@@ -67,6 +67,12 @@ spec:
         recursive: "{{recursive}}"
         idempotent: "{{idempotent}}"
       steps:
+      - set-header:
+          name: file
+          simple: "${header[CamelFileName]}"
+      - set-header:
+          name: ce-file
+          simple: "${header[CamelFileName]}"
       - convert-body-to:
           type: "java.io.InputStream"
       - to: "kamelet:sink"