You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/07/23 19:36:34 UTC

[camel] branch fw created (now b0939797f25)

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

davsclaus pushed a change to branch fw
in repository https://gitbox.apache.org/repos/asf/camel.git


      at b0939797f25 camel-file-watch: Fix events option is not an single value enum.

This branch includes the following new commits:

     new b0939797f25 camel-file-watch: Fix events option is not an single value enum.

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] 01/01: camel-file-watch: Fix events option is not an single value enum.

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

davsclaus pushed a commit to branch fw
in repository https://gitbox.apache.org/repos/asf/camel.git

commit b0939797f257be9074f89afeb8e3bf0fa53b1fe7
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Jul 23 21:36:23 2023 +0200

    camel-file-watch: Fix events option is not an single value enum.
---
 .../resources/org/apache/camel/catalog/components/file-watch.json   | 2 +-
 .../resources/org/apache/camel/component/file/watch/file-watch.json | 2 +-
 .../org/apache/camel/component/file/watch/FileWatchEndpoint.java    | 3 +--
 .../camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java | 6 ++++--
 4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file-watch.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file-watch.json
index 86a856061f8..497efe659ab 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file-watch.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/file-watch.json
@@ -47,7 +47,7 @@
     "antInclude": { "index": 1, "kind": "parameter", "displayName": "Ant Include", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "**", "description": "ANT style pattern to match files. The file is matched against path relative to endpoint path. Pattern must be also relative (not starting with slash)" },
     "autoCreate": { "index": 2, "kind": "parameter", "displayName": "Auto Create", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Auto create directory if does not exists." },
     "concurrentConsumers": { "index": 3, "kind": "parameter", "displayName": "Concurrent Consumers", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1, "description": "The number of concurrent consumers. Increase this value, if your route is slow to prevent buffering in queue." },
-    "events": { "index": 4, "kind": "parameter", "displayName": "Events", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "java.util.Set<org.apache.camel.component.file.watch.constants.FileEventEnum>", "enum": [ "CREATE", "MODIFY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CREATE,MODIFY,DELETE", "description": "Comma separated list of events to watch." },
+    "events": { "index": 4, "kind": "parameter", "displayName": "Events", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "java.util.Set<org.apache.camel.component.file.watch.constants.FileEventEnum>", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CREATE,MODIFY,DELETE", "description": "Comma separated list of events to watch. Possible values: CREATE,MODIFY,DELETE" },
     "fileHasher": { "index": 5, "kind": "parameter", "displayName": "File Hasher", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "io.methvin.watcher.hashing.FileHasher", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "#murmur3FFileHasher", "description": "Reference to io.methvin.watcher.hashing.FileHasher. This prevents emitting duplicate events on some platforms. For working with large files and if you dont need det [...]
     "pollThreads": { "index": 6, "kind": "parameter", "displayName": "Poll Threads", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1, "description": "The number of threads polling WatchService. Increase this value, if you see OVERFLOW messages in log." },
     "queueSize": { "index": 7, "kind": "parameter", "displayName": "Queue Size", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2147483647, "description": "Maximum size of queue between WatchService and consumer. Unbounded by default." },
diff --git a/components/camel-file-watch/src/generated/resources/org/apache/camel/component/file/watch/file-watch.json b/components/camel-file-watch/src/generated/resources/org/apache/camel/component/file/watch/file-watch.json
index 86a856061f8..497efe659ab 100644
--- a/components/camel-file-watch/src/generated/resources/org/apache/camel/component/file/watch/file-watch.json
+++ b/components/camel-file-watch/src/generated/resources/org/apache/camel/component/file/watch/file-watch.json
@@ -47,7 +47,7 @@
     "antInclude": { "index": 1, "kind": "parameter", "displayName": "Ant Include", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "**", "description": "ANT style pattern to match files. The file is matched against path relative to endpoint path. Pattern must be also relative (not starting with slash)" },
     "autoCreate": { "index": 2, "kind": "parameter", "displayName": "Auto Create", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Auto create directory if does not exists." },
     "concurrentConsumers": { "index": 3, "kind": "parameter", "displayName": "Concurrent Consumers", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1, "description": "The number of concurrent consumers. Increase this value, if your route is slow to prevent buffering in queue." },
-    "events": { "index": 4, "kind": "parameter", "displayName": "Events", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "java.util.Set<org.apache.camel.component.file.watch.constants.FileEventEnum>", "enum": [ "CREATE", "MODIFY", "DELETE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CREATE,MODIFY,DELETE", "description": "Comma separated list of events to watch." },
+    "events": { "index": 4, "kind": "parameter", "displayName": "Events", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "java.util.Set<org.apache.camel.component.file.watch.constants.FileEventEnum>", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "CREATE,MODIFY,DELETE", "description": "Comma separated list of events to watch. Possible values: CREATE,MODIFY,DELETE" },
     "fileHasher": { "index": 5, "kind": "parameter", "displayName": "File Hasher", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "io.methvin.watcher.hashing.FileHasher", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "#murmur3FFileHasher", "description": "Reference to io.methvin.watcher.hashing.FileHasher. This prevents emitting duplicate events on some platforms. For working with large files and if you dont need det [...]
     "pollThreads": { "index": 6, "kind": "parameter", "displayName": "Poll Threads", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1, "description": "The number of threads polling WatchService. Increase this value, if you see OVERFLOW messages in log." },
     "queueSize": { "index": 7, "kind": "parameter", "displayName": "Queue Size", "group": "consumer", "label": "consumer", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 2147483647, "description": "Maximum size of queue between WatchService and consumer. Unbounded by default." },
diff --git a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java
index 90b47766265..6d5a314b9da 100644
--- a/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java
+++ b/components/camel-file-watch/src/main/java/org/apache/camel/component/file/watch/FileWatchEndpoint.java
@@ -44,8 +44,7 @@ public class FileWatchEndpoint extends DefaultEndpoint implements MultipleConsum
     private String path;
 
     @UriParam(label = "consumer",
-              enums = "CREATE,MODIFY,DELETE",
-              description = "Comma separated list of events to watch.",
+              description = "Comma separated list of events to watch. Possible values: CREATE,MODIFY,DELETE",
               defaultValue = "CREATE,MODIFY,DELETE")
     private Set<FileEventEnum> events = EnumSet.copyOf(Arrays.asList(FileEventEnum.values()));
 
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java
index a835b2c04d9..469fc24dff5 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FileWatchEndpointBuilderFactory.java
@@ -125,7 +125,8 @@ public interface FileWatchEndpointBuilderFactory {
             return this;
         }
         /**
-         * Comma separated list of events to watch.
+         * Comma separated list of events to watch. Possible values:
+         * CREATE,MODIFY,DELETE.
          * 
          * The option is a:
          * &lt;code&gt;java.util.Set&amp;lt;org.apache.camel.component.file.watch.constants.FileEventEnum&amp;gt;&lt;/code&gt; type.
@@ -142,7 +143,8 @@ public interface FileWatchEndpointBuilderFactory {
             return this;
         }
         /**
-         * Comma separated list of events to watch.
+         * Comma separated list of events to watch. Possible values:
+         * CREATE,MODIFY,DELETE.
          * 
          * The option will be converted to a
          * &lt;code&gt;java.util.Set&amp;lt;org.apache.camel.component.file.watch.constants.FileEventEnum&amp;gt;&lt;/code&gt; type.