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 76a4f138621 CAMEL-22139: camel-jbang - Export to Quarkus should not
dash properties for hawtio
76a4f138621 is described below
commit 76a4f13862187d2cb75d3db2470c2424bed30955
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jun 4 14:26:58 2025 +0200
CAMEL-22139: camel-jbang - Export to Quarkus should not dash properties for
hawtio
---
.../java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java
index c7b11b57262..d9d3eff34b3 100644
---
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java
+++
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java
@@ -385,8 +385,9 @@ class ExportQuarkus extends Export {
// skip "camel.server." as this is for camel-main only
return null;
}
- // quarkus use dash cased properties and lets turn camel into dash as
well
- if (key.startsWith("quarkus.") || key.startsWith("camel.")) {
+ // quarkus use dash cased properties and lets turn camel into dash as
well (skip hawtio)
+ boolean dash = key.startsWith("camel.") || (key.startsWith("quarkus.")
&& !key.startsWith("quarkus.hawtio."));
+ if (dash) {
key = StringHelper.camelCaseToDash(key);
}
return super.applicationPropertyLine(key, value);