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/05 13:33:12 UTC

[camel] branch master updated (29f33b5 -> 05fe7af)

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 29f33b5  CAMEL-15812 - Camel-Git: Better structure for consumer returned object - Add information to the migration guide
     new 72e23c9  Camel-Git Branches Consumer: Added the ListMode.ALL to the call
     new 05fe7af  Camel-Git Branch Consumer: Remove getOut call and use GetMessage

The 2 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/component/git/consumer/GitBranchConsumer.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


[camel] 02/02: Camel-Git Branch Consumer: Remove getOut call and use GetMessage

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 05fe7af6209b23d00d8fdcd1d3d26e484d95d322
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Nov 5 14:29:51 2020 +0100

    Camel-Git Branch Consumer: Remove getOut call and use GetMessage
---
 .../java/org/apache/camel/component/git/consumer/GitBranchConsumer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
index 729ee02..e06a839 100644
--- a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
+++ b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
@@ -40,7 +40,7 @@ public class GitBranchConsumer extends AbstractGitConsumer {
         for (Ref ref : call) {
             if (!branchesConsumed.contains(ref.getName())) {
                 Exchange e = getEndpoint().createExchange();
-                e.getOut().setBody(ref);
+                e.getMessage().setBody(ref);
                 getProcessor().process(e);
                 branchesConsumed.add(ref.getName());
                 count++;


[camel] 01/02: Camel-Git Branches Consumer: Added the ListMode.ALL to the call

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 72e23c977ec98f3d5c29b36d5354403d5b31e417
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Nov 5 14:29:02 2020 +0100

    Camel-Git Branches Consumer: Added the ListMode.ALL to the call
---
 .../org/apache/camel/component/git/consumer/GitBranchConsumer.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
index e54bfb6..729ee02 100644
--- a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
+++ b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
@@ -22,6 +22,7 @@ import java.util.List;
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.component.git.GitEndpoint;
+import org.eclipse.jgit.api.ListBranchCommand.ListMode;
 import org.eclipse.jgit.lib.Ref;
 
 public class GitBranchConsumer extends AbstractGitConsumer {
@@ -35,7 +36,7 @@ public class GitBranchConsumer extends AbstractGitConsumer {
     @Override
     protected int poll() throws Exception {
         int count = 0;
-        List<Ref> call = getGit().branchList().call();
+        List<Ref> call = getGit().branchList().setListMode(ListMode.ALL).call();
         for (Ref ref : call) {
             if (!branchesConsumed.contains(ref.getName())) {
                 Exchange e = getEndpoint().createExchange();