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 ab46b925d684 camel-jbang: camel.jbang.health and camel.jbang.metrics
declare a work directory as their default (#29952)
ab46b925d684 is described below
commit ab46b925d6842bb9d5da6df3f60bb8a8ce98690a
Author: dhairya05 <[email protected]>
AuthorDate: Sun Nov 15 01:06:38 2026 +0530
camel-jbang: camel.jbang.health and camel.jbang.metrics declare a work
directory as their default (#29952)
…k directory as their default
Both are javaType=boolean, but their @Metadata carried
defaultValue=".camel-jbang/compile", the value of COMPILE_WORK_DIR
declared just above them - a copy-paste that only stays invisible
because the metadata generator runs the string through boolean parsing,
where an unparseable value yields false, which happens to be the real
default of the --health and --metrics flags.
Declare "false", as the other boolean properties in the class do. The
generated catalog is unchanged.
---
.../org/apache/camel/dsl/jbang/run/common/CamelJBangConstants.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/dsl/camel-jbang/camel-jbang-run/src/main/java/org/apache/camel/dsl/jbang/run/common/CamelJBangConstants.java
b/dsl/camel-jbang/camel-jbang-run/src/main/java/org/apache/camel/dsl/jbang/run/common/CamelJBangConstants.java
index 8125f8f52681..8ac17bfc602b 100644
---
a/dsl/camel-jbang/camel-jbang-run/src/main/java/org/apache/camel/dsl/jbang/run/common/CamelJBangConstants.java
+++
b/dsl/camel-jbang/camel-jbang-run/src/main/java/org/apache/camel/dsl/jbang/run/common/CamelJBangConstants.java
@@ -199,12 +199,12 @@ public final class CamelJBangConstants {
@Deprecated
@Metadata(description = "Health check at /observe/health on local HTTP
server (port 8080 by default)",
- javaType = "boolean", defaultValue = ".camel-jbang/compile",
deprecationNote = "Deprecated: use observe instead")
+ javaType = "boolean", defaultValue = "false", deprecationNote =
"Deprecated: use observe instead")
public static final String HEALTH = "camel.jbang.health";
@Deprecated
@Metadata(description = "Metrics (Micrometer and Prometheus) at
/observe/metrics on local HTTP server (port 8080 by default) when running
standalone Camel",
- javaType = "boolean", defaultValue = ".camel-jbang/compile",
deprecationNote = "Deprecated: use observe instead")
+ javaType = "boolean", defaultValue = "false", deprecationNote =
"Deprecated: use observe instead")
public static final String METRICS = "camel.jbang.metrics";
@Metadata(description = "Developer console at /q/dev on local HTTP server
(port 8080 by default)",