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 2021/08/21 06:21:51 UTC
[camel] branch main updated: camel-jbang: align features to ensure
they match the same version of CamelJBang by default (#5971)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 8fc78df camel-jbang: align features to ensure they match the same version of CamelJBang by default (#5971)
8fc78df is described below
commit 8fc78df4ba22a5f0f4ffdf7778d6b6db25fff351
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Sat Aug 21 08:21:11 2021 +0200
camel-jbang: align features to ensure they match the same version of CamelJBang by default (#5971)
---
.../camel-jbang-main/dist/CamelJBang.java | 20 ++++++++++++++++++++
.../src/main/jbang/main/CamelJBang.java | 20 ++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java b/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java
index 4119b5a..ff013fa 100755
--- a/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java
+++ b/dsl/camel-jbang/camel-jbang-main/dist/CamelJBang.java
@@ -235,6 +235,10 @@ class SearchKamelets extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "main", hidden = true,
+ description = "The branch to use when downloading resources from (used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "KAMELET", "DESCRIPTION", "LINK");
@@ -244,6 +248,7 @@ class SearchKamelets extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel-kamelets:docs/modules/ROOT/nav.adoc");
+ setBranch(branch);
MatchExtractor<Kamelet> matchExtractor;
@@ -282,6 +287,10 @@ class SearchComponents extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "camel-3.12.0-SNAPSHOT", hidden = true,
+ description = "The branch to use when downloading or searching resources (mostly used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "COMPONENT", "DESCRIPTION", "LINK");
@@ -291,6 +300,7 @@ class SearchComponents extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel:docs/components/modules/ROOT/nav.adoc");
+ setBranch(branch);
MatchExtractor<Component> matchExtractor;
if (searchTerm.isEmpty()) {
@@ -333,6 +343,10 @@ class SearchLanguages extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "camel-3.12.0-SNAPSHOT", hidden = true,
+ description = "The branch to use when downloading or searching resources (mostly used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "LANGUAGE", "DESCRIPTION", "LINK");
@@ -342,6 +356,7 @@ class SearchLanguages extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel:docs/components/modules/languages/nav.adoc");
+ setBranch(branch);
MatchExtractor<Language> matchExtractor;
if (searchTerm.isEmpty()) {
@@ -383,6 +398,10 @@ class SearchOthers extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "camel-3.12.0-SNAPSHOT", hidden = true,
+ description = "The branch to use when downloading or searching resources (mostly used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "COMPONENT", "DESCRIPTION", "LINK");
@@ -392,6 +411,7 @@ class SearchOthers extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel:docs/components/modules/others/nav.adoc");
+ setBranch(branch);
MatchExtractor<Other> matchExtractor;
if (searchTerm.isEmpty()) {
diff --git a/dsl/camel-jbang/camel-jbang-main/src/main/jbang/main/CamelJBang.java b/dsl/camel-jbang/camel-jbang-main/src/main/jbang/main/CamelJBang.java
index 11ffa9a..f1d2989 100755
--- a/dsl/camel-jbang/camel-jbang-main/src/main/jbang/main/CamelJBang.java
+++ b/dsl/camel-jbang/camel-jbang-main/src/main/jbang/main/CamelJBang.java
@@ -235,6 +235,10 @@ class SearchKamelets extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "main", hidden = true,
+ description = "The branch to use when downloading resources from (used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "KAMELET", "DESCRIPTION", "LINK");
@@ -244,6 +248,7 @@ class SearchKamelets extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel-kamelets:docs/modules/ROOT/nav.adoc");
+ setBranch(branch);
MatchExtractor<Kamelet> matchExtractor;
@@ -282,6 +287,10 @@ class SearchComponents extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "camel-${camel.jbang.version}", hidden = true,
+ description = "The branch to use when downloading or searching resources (mostly used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "COMPONENT", "DESCRIPTION", "LINK");
@@ -291,6 +300,7 @@ class SearchComponents extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel:docs/components/modules/ROOT/nav.adoc");
+ setBranch(branch);
MatchExtractor<Component> matchExtractor;
if (searchTerm.isEmpty()) {
@@ -333,6 +343,10 @@ class SearchLanguages extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "camel-${camel.jbang.version}", hidden = true,
+ description = "The branch to use when downloading or searching resources (mostly used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "LANGUAGE", "DESCRIPTION", "LINK");
@@ -342,6 +356,7 @@ class SearchLanguages extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel:docs/components/modules/languages/nav.adoc");
+ setBranch(branch);
MatchExtractor<Language> matchExtractor;
if (searchTerm.isEmpty()) {
@@ -383,6 +398,10 @@ class SearchOthers extends AbstractSearch implements Callable<Integer> {
description = "Where to download the resources from")
private String resourceLocation;
+ @Option(names = { "--branch" }, defaultValue = "camel-${camel.jbang.version}", hidden = true,
+ description = "The branch to use when downloading or searching resources (mostly used for development/testing)")
+ private String branch;
+
@Override
public void printHeader() {
System.out.printf("%-35s %-45s %s%n", "COMPONENT", "DESCRIPTION", "LINK");
@@ -392,6 +411,7 @@ class SearchOthers extends AbstractSearch implements Callable<Integer> {
@Override
public Integer call() throws Exception {
setResourceLocation(resourceLocation, "camel:docs/components/modules/others/nav.adoc");
+ setBranch(branch);
MatchExtractor<Other> matchExtractor;
if (searchTerm.isEmpty()) {