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 2023/06/09 13:55:37 UTC

[camel] branch main updated: CAMEL-19381: camel-jbang - Fix detecting custom camel versions

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 dc9cc309448 CAMEL-19381: camel-jbang - Fix detecting custom camel versions
dc9cc309448 is described below

commit dc9cc3094487b44e59ffb9500e56aaac0596e1fc
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jun 9 15:54:08 2023 +0200

    CAMEL-19381: camel-jbang - Fix detecting custom camel versions
---
 .../src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 03d8ee6a6be..f73ff2b5ac6 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
@@ -593,7 +593,7 @@ public class Run extends CamelCommand {
         // okay we have validated all input and are ready to run
         if (camelVersion != null) {
             // run in another JVM with different camel version (foreground or background)
-            boolean custom = camelVersion.contains("-");
+            boolean custom = camelVersion.contains("-") && !camelVersion.endsWith("-SNAPSHOT");
             if (custom) {
                 // custom camel distribution
                 return runCustomCamelVersion(main);