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/11/04 18:52:42 UTC

[camel] branch master updated (5c2b1bd -> 4aaf880)

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 5c2b1bd  fix: convert absolute links to relative
     new e9ebe8e  Camel-Git: Added correct label to options, some of them are not common.
     new cf752d6  Camel-Git: Regen docs and builders
     new 4aaf880  Regen catalog

The 3 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:
 .../org/apache/camel/catalog/components/git.json   |  12 +-
 .../apache/camel/catalog/docs/git-component.adoc   |  12 +-
 .../camel/component/git/GitEndpointConfigurer.java |  12 +-
 .../camel/component/git/GitEndpointUriFactory.java |   4 +-
 .../org/apache/camel/component/git/git.json        |  12 +-
 .../camel-git/src/main/docs/git-component.adoc     |  12 +-
 .../apache/camel/component/git/GitEndpoint.java    |  12 +-
 .../endpoint/dsl/GitEndpointBuilderFactory.java    | 264 ++++++---------------
 .../modules/ROOT/pages/git-component.adoc          |  12 +-
 9 files changed, 110 insertions(+), 242 deletions(-)


[camel] 02/03: Camel-Git: Regen docs and builders

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 cf752d6bdc4588dba20050fb29103ac1aae775b7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 4 19:05:51 2020 +0100

    Camel-Git: Regen docs and builders
---
 .../apache/camel/catalog/docs/git-component.adoc   |  12 +-
 .../camel/component/git/GitEndpointConfigurer.java |  12 +-
 .../camel/component/git/GitEndpointUriFactory.java |   4 +-
 .../org/apache/camel/component/git/git.json        |  12 +-
 .../camel-git/src/main/docs/git-component.adoc     |  12 +-
 .../endpoint/dsl/GitEndpointBuilderFactory.java    | 264 ++++++---------------
 .../modules/ROOT/pages/git-component.adoc          |  12 +-
 7 files changed, 98 insertions(+), 230 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/git-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/git-component.adoc
index 47497b8..5cf5a4b 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/git-component.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/git-component.adoc
@@ -80,19 +80,19 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *branchName* (common) | The branch name to work on |  | String
-| *password* (common) | Remote repository password |  | String
-| *remoteName* (common) | The remote repository name to use in particular operation like pull |  | String
-| *remotePath* (common) | The remote repository path |  | String
-| *tagName* (common) | The tag name to work on |  | String
-| *username* (common) | Remote repository username |  | String
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
 | *type* (consumer) | The consumer type. There are 3 enums and the value can be one of: commit, tag, branch |  | GitType
 | *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
 | *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. There are 3 enums and the value can be one of: InOnly, InOut, InOptionalOut |  | ExchangePattern
 | *allowEmpty* (producer) | The flag to manage empty git commits | true | boolean
+| *branchName* (producer) | The branch name to work on |  | String
 | *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
 | *operation* (producer) | The operation to do on the repository. There are 18 enums and the value can be one of: clone, init, add, remove, commit, commitAll, createBranch, deleteBranch, createTag, deleteTag, status, log, push, pull, showBranches, cherryPick, remoteAdd, remoteList |  | String
+| *password* (producer) | Remote repository password |  | String
+| *remoteName* (producer) | The remote repository name to use in particular operation like pull |  | String
+| *remotePath* (producer) | The remote repository path |  | String
+| *tagName* (producer) | The tag name to work on |  | String
+| *username* (producer) | Remote repository username |  | String
 | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
 | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean
 |===
diff --git a/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointConfigurer.java b/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointConfigurer.java
index e723319..c34b997 100644
--- a/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointConfigurer.java
+++ b/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointConfigurer.java
@@ -20,19 +20,19 @@ public class GitEndpointConfigurer extends PropertyConfigurerSupport implements
     static {
         Map<String, Object> map = new CaseInsensitiveMap();
         map.put("localPath", java.lang.String.class);
-        map.put("branchName", java.lang.String.class);
-        map.put("password", java.lang.String.class);
-        map.put("remoteName", java.lang.String.class);
-        map.put("remotePath", java.lang.String.class);
-        map.put("tagName", java.lang.String.class);
-        map.put("username", java.lang.String.class);
         map.put("bridgeErrorHandler", boolean.class);
         map.put("type", org.apache.camel.component.git.consumer.GitType.class);
         map.put("exceptionHandler", org.apache.camel.spi.ExceptionHandler.class);
         map.put("exchangePattern", org.apache.camel.ExchangePattern.class);
         map.put("allowEmpty", boolean.class);
+        map.put("branchName", java.lang.String.class);
         map.put("lazyStartProducer", boolean.class);
         map.put("operation", java.lang.String.class);
+        map.put("password", java.lang.String.class);
+        map.put("remoteName", java.lang.String.class);
+        map.put("remotePath", java.lang.String.class);
+        map.put("tagName", java.lang.String.class);
+        map.put("username", java.lang.String.class);
         map.put("basicPropertyBinding", boolean.class);
         map.put("synchronous", boolean.class);
         ALL_OPTIONS = map;
diff --git a/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointUriFactory.java b/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointUriFactory.java
index 5b16c76..b1e8af0 100644
--- a/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointUriFactory.java
+++ b/components/camel-git/src/generated/java/org/apache/camel/component/git/GitEndpointUriFactory.java
@@ -26,11 +26,11 @@ public class GitEndpointUriFactory extends org.apache.camel.support.component.En
         props.add("synchronous");
         props.add("exchangePattern");
         props.add("branchName");
-        props.add("tagName");
         props.add("type");
+        props.add("tagName");
         props.add("allowEmpty");
-        props.add("password");
         props.add("lazyStartProducer");
+        props.add("password");
         props.add("bridgeErrorHandler");
         props.add("localPath");
         props.add("exceptionHandler");
diff --git a/components/camel-git/src/generated/resources/org/apache/camel/component/git/git.json b/components/camel-git/src/generated/resources/org/apache/camel/component/git/git.json
index 0038b5f..6536754 100644
--- a/components/camel-git/src/generated/resources/org/apache/camel/component/git/git.json
+++ b/components/camel-git/src/generated/resources/org/apache/camel/component/git/git.json
@@ -28,19 +28,19 @@
   },
   "properties": {
     "localPath": { "kind": "path", "displayName": "Local Path", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "Local repository path" },
-    "branchName": { "kind": "parameter", "displayName": "Branch Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The branch name to work on" },
-    "password": { "kind": "parameter", "displayName": "Password", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository password" },
-    "remoteName": { "kind": "parameter", "displayName": "Remote Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository name to use in particular operation like pull" },
-    "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository path" },
-    "tagName": { "kind": "parameter", "displayName": "Tag Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The tag name to work on" },
-    "username": { "kind": "parameter", "displayName": "Username", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository username" },
     "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled b [...]
     "type": { "kind": "parameter", "displayName": "Type", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "org.apache.camel.component.git.consumer.GitType", "enum": [ "commit", "tag", "branch" ], "deprecated": false, "secret": false, "description": "The consumer type" },
     "exceptionHandler": { "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with [...]
     "exchangePattern": { "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut", "InOptionalOut" ], "deprecated": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." },
     "allowEmpty": { "kind": "parameter", "displayName": "Allow Empty", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "deprecationNote": "", "secret": false, "defaultValue": true, "description": "The flag to manage empty git commits" },
+    "branchName": { "kind": "parameter", "displayName": "Branch Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The branch name to work on" },
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the  [...]
     "operation": { "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "clone", "init", "add", "remove", "commit", "commitAll", "createBranch", "deleteBranch", "createTag", "deleteTag", "status", "log", "push", "pull", "showBranches", "cherryPick", "remoteAdd", "remoteList" ], "deprecated": false, "secret": false, "description": "The operation to do on the repository" },
+    "password": { "kind": "parameter", "displayName": "Password", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository password" },
+    "remoteName": { "kind": "parameter", "displayName": "Remote Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository name to use in particular operation like pull" },
+    "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository path" },
+    "tagName": { "kind": "parameter", "displayName": "Tag Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The tag name to work on" },
+    "username": { "kind": "parameter", "displayName": "Username", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository username" },
     "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" },
     "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }
   }
diff --git a/components/camel-git/src/main/docs/git-component.adoc b/components/camel-git/src/main/docs/git-component.adoc
index 47497b8..5cf5a4b 100644
--- a/components/camel-git/src/main/docs/git-component.adoc
+++ b/components/camel-git/src/main/docs/git-component.adoc
@@ -80,19 +80,19 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *branchName* (common) | The branch name to work on |  | String
-| *password* (common) | Remote repository password |  | String
-| *remoteName* (common) | The remote repository name to use in particular operation like pull |  | String
-| *remotePath* (common) | The remote repository path |  | String
-| *tagName* (common) | The tag name to work on |  | String
-| *username* (common) | Remote repository username |  | String
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
 | *type* (consumer) | The consumer type. There are 3 enums and the value can be one of: commit, tag, branch |  | GitType
 | *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
 | *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. There are 3 enums and the value can be one of: InOnly, InOut, InOptionalOut |  | ExchangePattern
 | *allowEmpty* (producer) | The flag to manage empty git commits | true | boolean
+| *branchName* (producer) | The branch name to work on |  | String
 | *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
 | *operation* (producer) | The operation to do on the repository. There are 18 enums and the value can be one of: clone, init, add, remove, commit, commitAll, createBranch, deleteBranch, createTag, deleteTag, status, log, push, pull, showBranches, cherryPick, remoteAdd, remoteList |  | String
+| *password* (producer) | Remote repository password |  | String
+| *remoteName* (producer) | The remote repository name to use in particular operation like pull |  | String
+| *remotePath* (producer) | The remote repository path |  | String
+| *tagName* (producer) | The tag name to work on |  | String
+| *username* (producer) | Remote repository username |  | String
 | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
 | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean
 |===
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GitEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GitEndpointBuilderFactory.java
index 136d5e4..d5f2e08 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GitEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GitEndpointBuilderFactory.java
@@ -42,72 +42,6 @@ public interface GitEndpointBuilderFactory {
             return (AdvancedGitEndpointConsumerBuilder) this;
         }
         /**
-         * The branch name to work on.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointConsumerBuilder branchName(String branchName) {
-            doSetProperty("branchName", branchName);
-            return this;
-        }
-        /**
-         * Remote repository password.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointConsumerBuilder password(String password) {
-            doSetProperty("password", password);
-            return this;
-        }
-        /**
-         * The remote repository name to use in particular operation like pull.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointConsumerBuilder remoteName(String remoteName) {
-            doSetProperty("remoteName", remoteName);
-            return this;
-        }
-        /**
-         * The remote repository path.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointConsumerBuilder remotePath(String remotePath) {
-            doSetProperty("remotePath", remotePath);
-            return this;
-        }
-        /**
-         * The tag name to work on.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointConsumerBuilder tagName(String tagName) {
-            doSetProperty("tagName", tagName);
-            return this;
-        }
-        /**
-         * Remote repository username.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointConsumerBuilder username(String username) {
-            doSetProperty("username", username);
-            return this;
-        }
-        /**
          * Allows for bridging the consumer to the Camel routing Error Handler,
          * which mean any exceptions occurred while the consumer is trying to
          * pickup incoming messages, or the likes, will now be processed as a
@@ -305,72 +239,6 @@ public interface GitEndpointBuilderFactory {
             return (AdvancedGitEndpointProducerBuilder) this;
         }
         /**
-         * The branch name to work on.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointProducerBuilder branchName(String branchName) {
-            doSetProperty("branchName", branchName);
-            return this;
-        }
-        /**
-         * Remote repository password.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointProducerBuilder password(String password) {
-            doSetProperty("password", password);
-            return this;
-        }
-        /**
-         * The remote repository name to use in particular operation like pull.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointProducerBuilder remoteName(String remoteName) {
-            doSetProperty("remoteName", remoteName);
-            return this;
-        }
-        /**
-         * The remote repository path.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointProducerBuilder remotePath(String remotePath) {
-            doSetProperty("remotePath", remotePath);
-            return this;
-        }
-        /**
-         * The tag name to work on.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointProducerBuilder tagName(String tagName) {
-            doSetProperty("tagName", tagName);
-            return this;
-        }
-        /**
-         * Remote repository username.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointProducerBuilder username(String username) {
-            doSetProperty("username", username);
-            return this;
-        }
-        /**
          * The flag to manage empty git commits.
          * 
          * The option is a: <code>boolean</code> type.
@@ -395,6 +263,17 @@ public interface GitEndpointBuilderFactory {
             return this;
         }
         /**
+         * The branch name to work on.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default GitEndpointProducerBuilder branchName(String branchName) {
+            doSetProperty("branchName", branchName);
+            return this;
+        }
+        /**
          * Whether the producer should be started lazy (on the first message).
          * By starting lazy you can use this to allow CamelContext and routes to
          * startup in situations where a producer may otherwise fail during
@@ -447,6 +326,61 @@ public interface GitEndpointBuilderFactory {
             doSetProperty("operation", operation);
             return this;
         }
+        /**
+         * Remote repository password.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default GitEndpointProducerBuilder password(String password) {
+            doSetProperty("password", password);
+            return this;
+        }
+        /**
+         * The remote repository name to use in particular operation like pull.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default GitEndpointProducerBuilder remoteName(String remoteName) {
+            doSetProperty("remoteName", remoteName);
+            return this;
+        }
+        /**
+         * The remote repository path.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default GitEndpointProducerBuilder remotePath(String remotePath) {
+            doSetProperty("remotePath", remotePath);
+            return this;
+        }
+        /**
+         * The tag name to work on.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default GitEndpointProducerBuilder tagName(String tagName) {
+            doSetProperty("tagName", tagName);
+            return this;
+        }
+        /**
+         * Remote repository username.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         */
+        default GitEndpointProducerBuilder username(String username) {
+            doSetProperty("username", username);
+            return this;
+        }
     }
 
     /**
@@ -526,72 +460,6 @@ public interface GitEndpointBuilderFactory {
         default AdvancedGitEndpointBuilder advanced() {
             return (AdvancedGitEndpointBuilder) this;
         }
-        /**
-         * The branch name to work on.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointBuilder branchName(String branchName) {
-            doSetProperty("branchName", branchName);
-            return this;
-        }
-        /**
-         * Remote repository password.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointBuilder password(String password) {
-            doSetProperty("password", password);
-            return this;
-        }
-        /**
-         * The remote repository name to use in particular operation like pull.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointBuilder remoteName(String remoteName) {
-            doSetProperty("remoteName", remoteName);
-            return this;
-        }
-        /**
-         * The remote repository path.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointBuilder remotePath(String remotePath) {
-            doSetProperty("remotePath", remotePath);
-            return this;
-        }
-        /**
-         * The tag name to work on.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointBuilder tagName(String tagName) {
-            doSetProperty("tagName", tagName);
-            return this;
-        }
-        /**
-         * Remote repository username.
-         * 
-         * The option is a: <code>java.lang.String</code> type.
-         * 
-         * Group: common
-         */
-        default GitEndpointBuilder username(String username) {
-            doSetProperty("username", username);
-            return this;
-        }
     }
 
     /**
diff --git a/docs/components/modules/ROOT/pages/git-component.adoc b/docs/components/modules/ROOT/pages/git-component.adoc
index 5712c88..c88863c 100644
--- a/docs/components/modules/ROOT/pages/git-component.adoc
+++ b/docs/components/modules/ROOT/pages/git-component.adoc
@@ -82,19 +82,19 @@ with the following path and query parameters:
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
-| *branchName* (common) | The branch name to work on |  | String
-| *password* (common) | Remote repository password |  | String
-| *remoteName* (common) | The remote repository name to use in particular operation like pull |  | String
-| *remotePath* (common) | The remote repository path |  | String
-| *tagName* (common) | The tag name to work on |  | String
-| *username* (common) | Remote repository username |  | String
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
 | *type* (consumer) | The consumer type. There are 3 enums and the value can be one of: commit, tag, branch |  | GitType
 | *exceptionHandler* (consumer) | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
 | *exchangePattern* (consumer) | Sets the exchange pattern when the consumer creates an exchange. There are 3 enums and the value can be one of: InOnly, InOut, InOptionalOut |  | ExchangePattern
 | *allowEmpty* (producer) | The flag to manage empty git commits | true | boolean
+| *branchName* (producer) | The branch name to work on |  | String
 | *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
 | *operation* (producer) | The operation to do on the repository. There are 18 enums and the value can be one of: clone, init, add, remove, commit, commitAll, createBranch, deleteBranch, createTag, deleteTag, status, log, push, pull, showBranches, cherryPick, remoteAdd, remoteList |  | String
+| *password* (producer) | Remote repository password |  | String
+| *remoteName* (producer) | The remote repository name to use in particular operation like pull |  | String
+| *remotePath* (producer) | The remote repository path |  | String
+| *tagName* (producer) | The tag name to work on |  | String
+| *username* (producer) | Remote repository username |  | String
 | *basicPropertyBinding* (advanced) | Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities | false | boolean
 | *synchronous* (advanced) | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). | false | boolean
 |===


[camel] 03/03: Regen catalog

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 4aaf8809520bbd71e41038f6e3627f6119395186
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 4 19:51:58 2020 +0100

    Regen catalog
---
 .../resources/org/apache/camel/catalog/components/git.json   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/git.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/git.json
index 0038b5f..6536754 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/git.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/git.json
@@ -28,19 +28,19 @@
   },
   "properties": {
     "localPath": { "kind": "path", "displayName": "Local Path", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "description": "Local repository path" },
-    "branchName": { "kind": "parameter", "displayName": "Branch Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The branch name to work on" },
-    "password": { "kind": "parameter", "displayName": "Password", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository password" },
-    "remoteName": { "kind": "parameter", "displayName": "Remote Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository name to use in particular operation like pull" },
-    "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository path" },
-    "tagName": { "kind": "parameter", "displayName": "Tag Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The tag name to work on" },
-    "username": { "kind": "parameter", "displayName": "Username", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository username" },
     "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled b [...]
     "type": { "kind": "parameter", "displayName": "Type", "group": "consumer", "label": "consumer", "required": false, "type": "object", "javaType": "org.apache.camel.component.git.consumer.GitType", "enum": [ "commit", "tag", "branch" ], "deprecated": false, "secret": false, "description": "The consumer type" },
     "exceptionHandler": { "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with [...]
     "exchangePattern": { "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut", "InOptionalOut" ], "deprecated": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." },
     "allowEmpty": { "kind": "parameter", "displayName": "Allow Empty", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "deprecationNote": "", "secret": false, "defaultValue": true, "description": "The flag to manage empty git commits" },
+    "branchName": { "kind": "parameter", "displayName": "Branch Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The branch name to work on" },
     "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the  [...]
     "operation": { "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "enum": [ "clone", "init", "add", "remove", "commit", "commitAll", "createBranch", "deleteBranch", "createTag", "deleteTag", "status", "log", "push", "pull", "showBranches", "cherryPick", "remoteAdd", "remoteList" ], "deprecated": false, "secret": false, "description": "The operation to do on the repository" },
+    "password": { "kind": "parameter", "displayName": "Password", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository password" },
+    "remoteName": { "kind": "parameter", "displayName": "Remote Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository name to use in particular operation like pull" },
+    "remotePath": { "kind": "parameter", "displayName": "Remote Path", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The remote repository path" },
+    "tagName": { "kind": "parameter", "displayName": "Tag Name", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "The tag name to work on" },
+    "username": { "kind": "parameter", "displayName": "Username", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Remote repository username" },
     "basicPropertyBinding": { "kind": "parameter", "displayName": "Basic Property Binding", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities" },
     "synchronous": { "kind": "parameter", "displayName": "Synchronous", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)." }
   }


[camel] 01/03: Camel-Git: Added correct label to options, some of them are not common.

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 e9ebe8ec0a92ffdb9b117cd32bc0a0efc4dff587
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Nov 4 19:03:19 2020 +0100

    Camel-Git: Added correct label to options, some of them are not common.
---
 .../java/org/apache/camel/component/git/GitEndpoint.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/components/camel-git/src/main/java/org/apache/camel/component/git/GitEndpoint.java b/components/camel-git/src/main/java/org/apache/camel/component/git/GitEndpoint.java
index f06dbc1..0d77d6d 100644
--- a/components/camel-git/src/main/java/org/apache/camel/component/git/GitEndpoint.java
+++ b/components/camel-git/src/main/java/org/apache/camel/component/git/GitEndpoint.java
@@ -41,25 +41,25 @@ public class GitEndpoint extends DefaultEndpoint {
     @Metadata(required = true)
     private String localPath;
 
-    @UriParam
+    @UriParam(label = "producer")
     private String branchName;
 
-    @UriParam
+    @UriParam(label = "producer")
     private String tagName;
 
     @UriParam(enums = "commit,tag,branch", label = "consumer")
     private GitType type;
 
-    @UriParam
+    @UriParam(label = "producer")
     private String username;
 
-    @UriParam
+    @UriParam(label = "producer")
     private String password;
 
-    @UriParam
+    @UriParam(label = "producer")
     private String remotePath;
 
-    @UriParam
+    @UriParam(label = "producer")
     private String remoteName;
 
     // Set to true for backward compatibility , better to set to false (native git behavior)