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 2021/01/25 08:48:55 UTC

[camel] branch master updated: Allow to reset build taken for native builds that are super fast.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new fda2d3d  Allow to reset build taken for native builds that are super fast.
fda2d3d is described below

commit fda2d3d25bd003ba46dd209ed5b2c89396902d93
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Jan 25 09:48:28 2021 +0100

    Allow to reset build taken for native builds that are super fast.
---
 .../java/org/apache/camel/impl/engine/AbstractCamelContext.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index a29faf1..c4ee5c2 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -2548,6 +2548,10 @@ public abstract class AbstractCamelContext extends BaseService
             }
         }
 
+        LOG.warn("TODO Sleeping for 3 sec in doBuild START");
+        Thread.sleep(3000);
+        LOG.warn("TODO Sleeping for 3 sec in doBuild DONE");
+
         startupStepRecorder.start();
         StartupStep step = startupStepRecorder.beginStep(CamelContext.class, null, "Build CamelContext");
 
@@ -2595,6 +2599,11 @@ public abstract class AbstractCamelContext extends BaseService
         LOG.debug("Apache Camel {} ({}) built in {}", getVersion(), getName(), TimeUtils.printDuration(buildTaken));
     }
 
+    protected void resetBuildTime() {
+        // needed by camel-quarkus
+        buildTaken = 0;
+    }
+
     @Override
     public void doInit() throws Exception {
         StopWatch watch = new StopWatch();