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/05/03 05:36:02 UTC

[camel] branch main updated: CAMEL-18037: camel-jbang - Use quick shutdown timeout for development mode only.

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 93b47fbc4a1 CAMEL-18037: camel-jbang - Use quick shutdown timeout for development mode only.
93b47fbc4a1 is described below

commit 93b47fbc4a16e3e8169b6102121bc48abe423fad
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue May 3 07:35:46 2022 +0200

    CAMEL-18037: camel-jbang - Use quick shutdown timeout for development mode only.
---
 .../src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 88f3689c8ad..0a30cf76078 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
@@ -265,8 +265,10 @@ class Run implements Callable<Integer> {
         main.setAppName("Apache Camel (JBang)");
 
         writeSetting(main, applicationProperties, "camel.main.name", name);
-        writeSetting(main, applicationProperties, "camel.main.shutdownTimeout", "5");
-
+        if (dev) {
+            // allow quick shutdown during development
+            writeSetting(main, applicationProperties, "camel.main.shutdownTimeout", "5");
+        }
         writeSetting(main, applicationProperties, "camel.main.routesReloadEnabled", dev ? "true" : "false");
         writeSetting(main, applicationProperties, "camel.main.sourceLocationEnabled", "true");
         writeSetting(main, applicationProperties, "camel.main.tracing", trace ? "true" : "false");