Skip to content

Commit 3b05ccb

Browse files
committed
CAMEL-21983: camel-jbang - Export to quarkus produces an incorrect application.properties file when referring kamelet files
1 parent 8c8ef1a commit 3b05ccb

File tree

1 file changed

+7
-1
lines changed
  • dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands

1 file changed

+7
-1
lines changed

dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportQuarkus.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,13 @@ protected void prepareApplicationProperties(Properties properties) {
155155
v = Arrays.stream(v.split(","))
156156
.filter(d -> !d.endsWith(".java")) // skip .java as they are in the src/main/java folder
157157
.map(ExportQuarkus::removeScheme) // remove scheme and routes are in camel sub-folder
158-
.map(s -> "camel/" + s)
158+
.map(s -> {
159+
if (s.endsWith("kamelet.yaml")) {
160+
return "kamelets/" + s;
161+
} else {
162+
return "camel/" + s;
163+
}
164+
})
159165
.collect(Collectors.joining(","));
160166
sj.add(v);
161167
}

0 commit comments

Comments
 (0)