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

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


The following commit(s) were added to refs/heads/camel-4.14.x by this push:
     new 8d86d34623db CAMEL-22628: camel-console - Add information to route dev 
console if route is created by template/kamelet
8d86d34623db is described below

commit 8d86d34623db4969fdd3ab4d80e07a97ad50d690
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Oct 30 08:47:20 2025 +0100

    CAMEL-22628: camel-console - Add information to route dev console if route 
is created by template/kamelet
---
 .../main/java/org/apache/camel/impl/console/RouteDevConsole.java  | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/core/camel-console/src/main/java/org/apache/camel/impl/console/RouteDevConsole.java
 
b/core/camel-console/src/main/java/org/apache/camel/impl/console/RouteDevConsole.java
index 87247e2114a4..34d1035a0a73 100644
--- 
a/core/camel-console/src/main/java/org/apache/camel/impl/console/RouteDevConsole.java
+++ 
b/core/camel-console/src/main/java/org/apache/camel/impl/console/RouteDevConsole.java
@@ -99,6 +99,12 @@ public class RouteDevConsole extends AbstractDevConsole {
             if (mrb.getDescription() != null) {
                 sb.append(String.format("\n    Description: %s", 
mrb.getDescription()));
             }
+            if (mrb.isCreatedByKamelet()) {
+                sb.append(String.format("\n    Created By Kamelet: %s", true));
+            }
+            if (mrb.isCreatedByRouteTemplate()) {
+                sb.append(String.format("\n    Created By Route Template: %s", 
true));
+            }
             sb.append(String.format("\n    From: %s", mrb.getEndpointUri()));
             sb.append(String.format("\n    Remote: %s", 
mrb.isRemoteEndpoint()));
             if (mrb.getSourceLocation() != null) {
@@ -271,6 +277,8 @@ public class RouteDevConsole extends AbstractDevConsole {
             if (mrb.getDescription() != null) {
                 jo.put("description", mrb.getDescription());
             }
+            jo.put("createdByKamelet", mrb.isCreatedByKamelet());
+            jo.put("createdByRouteTemplate", mrb.isCreatedByRouteTemplate());
             jo.put("from", mrb.getEndpointUri());
             jo.put("remote", mrb.isRemoteEndpoint());
             if (mrb.getSourceLocation() != null) {

Reply via email to