Repository: camel Updated Branches: refs/heads/master e21187e82 -> f44a8cdbd
Polished Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/33f08352 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/33f08352 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/33f08352 Branch: refs/heads/master Commit: 33f083526138d2982f308dafb57c87f46934f1b6 Parents: e21187e Author: Claus Ibsen <davscl...@apache.org> Authored: Sun Jul 19 10:31:25 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Jul 19 10:31:25 2015 +0200 ---------------------------------------------------------------------- .../org/apache/camel/component/git/GitEndpoint.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/33f08352/components/camel-git/src/main/java/org/apache/camel/component/git/GitEndpoint.java ---------------------------------------------------------------------- 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 261c6ce..cda09f5 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 @@ -30,20 +30,20 @@ import org.apache.camel.spi.UriEndpoint; import org.apache.camel.spi.UriParam; import org.apache.camel.spi.UriPath; -@UriEndpoint(scheme = "git", title = "Git", syntax = "git://localpath", label = "api,file") +@UriEndpoint(scheme = "git", title = "Git", syntax = "git:localpath", label = "file") public class GitEndpoint extends DefaultEndpoint { @UriPath @Metadata(required = "true") private String localPath; - @UriPath + @UriParam private String branchName; - @UriPath + @UriParam private String tagName; - @UriPath(label = "consumer") + @UriParam(label = "consumer") private GitType type; @UriParam @@ -76,13 +76,13 @@ public class GitEndpoint extends DefaultEndpoint { } else if (type == GitType.BRANCH) { return new GitBranchConsumer(this, processor); } else { - throw new IllegalArgumentException("Cannot create producer with type " + type); + throw new IllegalArgumentException("Cannot create consumer with type " + type); } } @Override public boolean isSingleton() { - return false; + return true; } /**