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 <[email protected]>
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);
             }

Reply via email to