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 2020/10/16 06:34:00 UTC
[camel] branch master updated (e1f27a1 -> 524cd6d)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from e1f27a1 Sync Properties
new c7e92b9 CAMEL-15693 - Camel-File-watch: Event type should be a simple string on the consumer side
new e0116ac CAMEL-15693 - Camel-File-watch: Event type should be a simple string on the consumer side, updated docs
new 77c8e44 CAMEL-15693 - Camel-File-watch: Event type should be a simple string on the consumer side, regen docs
new 524cd6d Added first notes for migration from 3.6 to 3.7
The 4 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:
.../apache/camel/catalog/docs/file-watch-component.adoc | 2 +-
.../src/main/docs/file-watch-component.adoc | 2 +-
.../camel/component/file/watch/FileWatchConsumer.java | 2 +-
.../modules/ROOT/pages/file-watch-component.adoc | 2 +-
.../modules/ROOT/pages/camel-3x-upgrade-guide-3_7.adoc | 17 +++++++++++++++++
.../modules/ROOT/pages/camel-3x-upgrade-guide.adoc | 1 +
6 files changed, 22 insertions(+), 4 deletions(-)
create mode 100644 docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_7.adoc
[camel] 02/04: CAMEL-15693 - Camel-File-watch: Event type should be
a simple string on the consumer side, updated docs
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit e0116acdf41ee2477d4b3a563372170736a3ef57
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 16 08:28:04 2020 +0200
CAMEL-15693 - Camel-File-watch: Event type should be a simple string on the consumer side, updated docs
---
components/camel-file-watch/src/main/docs/file-watch-component.adoc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-file-watch/src/main/docs/file-watch-component.adoc b/components/camel-file-watch/src/main/docs/file-watch-component.adoc
index 5c422b8..d9b221b 100644
--- a/components/camel-file-watch/src/main/docs/file-watch-component.adoc
+++ b/components/camel-file-watch/src/main/docs/file-watch-component.adoc
@@ -116,7 +116,7 @@ The following headers are supported by this component:
|Header |Description
|`CamelFileEventType` |Type of event. Possible values: CREATE, DELETE, MODIFY.
-The java type of this header is `org.apache.camel.component.file.watch.constants.FileEventEnum`
+The java type of this header is String
|`CamelFileName` |Name of the consumed file as a relative file path with offset from the
starting directory configured on the endpoint.
[camel] 04/04: Added first notes for migration from 3.6 to 3.7
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 524cd6d54b873fc8994aa0b7175623c58dd3b1bf
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 16 08:33:07 2020 +0200
Added first notes for migration from 3.6 to 3.7
---
.../modules/ROOT/pages/camel-3x-upgrade-guide-3_7.adoc | 17 +++++++++++++++++
.../modules/ROOT/pages/camel-3x-upgrade-guide.adoc | 1 +
2 files changed, 18 insertions(+)
diff --git a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_7.adoc b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_7.adoc
new file mode 100644
index 0000000..3fd4481
--- /dev/null
+++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_7.adoc
@@ -0,0 +1,17 @@
+= Apache Camel 3.x Upgrade Guide
+
+This document is for helping you upgrade your Apache Camel application
+from Camel 3.x to 3.y. For example if you are upgrading Camel 3.0 to 3.2, then you should follow the guides
+from both 3.0 to 3.1 and 3.1 to 3.2.
+
+== Upgrading Camel 3.6 to 3.7
+
+=== Camel-Couchbase
+
+The original URI path has been changed, now the bucket part is simply a required option and it's not part of the URI anymore.
+
+=== Camel-File-Watch
+
+The event type header is no more an enum, but it is now the explicit Event String.
+
+
diff --git a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc
index bb756da..c361a94 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide.adoc
@@ -15,3 +15,4 @@ You can find upgrade guide for each release in the following pages:
- xref:camel-3x-upgrade-guide-3_4.adoc[Upgrade guide from 3.3 to 3.4]
- xref:camel-3x-upgrade-guide-3_5.adoc[Upgrade guide from 3.4 to 3.5]
- xref:camel-3x-upgrade-guide-3_6.adoc[Upgrade guide from 3.5 to 3.6]
+- xref:camel-3x-upgrade-guide-3_7.adoc[Upgrade guide from 3.6 to 3.7]
[camel] 03/04: CAMEL-15693 - Camel-File-watch: Event type should be
a simple string on the consumer side, regen docs
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 77c8e446e47b9e91f4980846bec7d244ad13753d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 16 08:29:30 2020 +0200
CAMEL-15693 - Camel-File-watch: Event type should be a simple string on the consumer side, regen docs
---
.../resources/org/apache/camel/catalog/docs/file-watch-component.adoc | 2 +-
docs/components/modules/ROOT/pages/file-watch-component.adoc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/file-watch-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/file-watch-component.adoc
index 5c422b8..d9b221b 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/file-watch-component.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/file-watch-component.adoc
@@ -116,7 +116,7 @@ The following headers are supported by this component:
|Header |Description
|`CamelFileEventType` |Type of event. Possible values: CREATE, DELETE, MODIFY.
-The java type of this header is `org.apache.camel.component.file.watch.constants.FileEventEnum`
+The java type of this header is String
|`CamelFileName` |Name of the consumed file as a relative file path with offset from the
starting directory configured on the endpoint.
diff --git a/docs/components/modules/ROOT/pages/file-watch-component.adoc b/docs/components/modules/ROOT/pages/file-watch-component.adoc
index 882faf1..e212ec8 100644
--- a/docs/components/modules/ROOT/pages/file-watch-component.adoc
+++ b/docs/components/modules/ROOT/pages/file-watch-component.adoc
@@ -118,7 +118,7 @@ The following headers are supported by this component:
|Header |Description
|`CamelFileEventType` |Type of event. Possible values: CREATE, DELETE, MODIFY.
-The java type of this header is `org.apache.camel.component.file.watch.constants.FileEventEnum`
+The java type of this header is String
|`CamelFileName` |Name of the consumed file as a relative file path with offset from the
starting directory configured on the endpoint.
[camel] 01/04: CAMEL-15693 - Camel-File-watch: Event type should be
a simple string on the consumer side
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit c7e92b9d0e211c7c03e0df39168959d4a8a2a88d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 16 08:25:46 2020 +0200
CAMEL-15693 - Camel-File-watch: Event type should be a simple string on the consumer side
---
.../java/org/apache/camel/component/file/watch/FileWatchConsumer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java
index cb9333a..257bc40 100644
--- a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java
+++ b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchConsumer.java
@@ -143,7 +143,7 @@ public class FileWatchConsumer extends DefaultConsumer {
File file = event.getEventPath().toFile();
Message message = exchange.getIn();
message.setBody(file);
- message.setHeader(FileWatchComponent.EVENT_TYPE_HEADER, event.getEventType());
+ message.setHeader(FileWatchComponent.EVENT_TYPE_HEADER, event.getEventType().name());
message.setHeader(Exchange.FILE_NAME_ONLY, event.getEventPath().getFileName().toString());
message.setHeader("CamelFileAbsolute", true);