This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.10.x by this push:
new 59c43907cb6 CAMEL-22139: camel-jbang - Export to Quarkus should not
dash properties for hawtio
59c43907cb6 is described below
commit 59c43907cb61a7f480c526d79c2596ae670a8883
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 62b3d6c5830..cd60794650c 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
@@ -380,8 +380,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);