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 2022/03/18 23:36:13 UTC

[camel] branch main updated: CAMEL-17815: camel-jbang - In modeline mode then eager discover routes and pre-load modeline to allow properties to be used during bootstrap.

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 0cefaa9  CAMEL-17815: camel-jbang - In modeline mode then eager discover routes and pre-load modeline to allow properties to be used during bootstrap.
0cefaa9 is described below

commit 0cefaa9298baf7831601dd508e6f68ac9fdf0e47
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Mar 19 00:34:03 2022 +0100

    CAMEL-17815: camel-jbang - In modeline mode then eager discover routes and pre-load modeline to allow properties to be used during bootstrap.
---
 .../camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
index 0675f31..27c0aa5 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
@@ -385,7 +385,7 @@ public abstract class BaseMainSupport extends BaseService {
             autoConfigurationPropertiesComponent(camelContext, autoConfiguredProperties);
 
             // eager load properties from modeline by scanning DSL sources and gather properties for auto configuration
-            if (camelContext.isModeline() || configure().isModeline()) {
+            if (camelContext.isModeline() || mainConfigurationProperties.isModeline()) {
                 autoConfigurationRoutesIncludePattern(camelContext, autoConfiguredProperties);
                 modelineRoutes(camelContext);
             }