This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-3.21.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.21.x by this push: new ab6b1ae2a93 camel-jbang - Run change version should handle RC and M versions ab6b1ae2a93 is described below commit ab6b1ae2a934a3415de63815ac709e49733609db Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Jul 21 07:14:07 2023 +0200 camel-jbang - Run change version should handle RC and M versions --- .../src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java index 03f8c415bde..7d13ab862ed 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java @@ -578,6 +578,10 @@ public class Run extends CamelCommand { if (camelVersion != null) { // run in another JVM with different camel version (foreground or background) boolean custom = camelVersion.contains("-") && !camelVersion.endsWith("-SNAPSHOT"); + if (custom) { + // regular camel versions can also be a milestone or release candidate + custom = !camelVersion.matches(".*-(RC|M)\\d$"); + } if (custom) { // custom camel distribution return runCustomCamelVersion(main);