You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/05/04 11:58:10 UTC
[camel] branch main updated: CAMEL-17819: camel-jbang - Can we support --opena-api like camel-k have
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 bfe5f2e19fc CAMEL-17819: camel-jbang - Can we support --opena-api like camel-k have
bfe5f2e19fc is described below
commit bfe5f2e19fc0be7ba63101d6e471fe8d96fad81c
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed May 4 13:57:53 2022 +0200
CAMEL-17819: camel-jbang - Can we support --opena-api like camel-k have
---
.../src/main/java/org/apache/camel/dsl/jbang/core/commands/UberJar.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/UberJar.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/UberJar.java
index 009d3120665..0e6d923dca6 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/UberJar.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/UberJar.java
@@ -188,6 +188,8 @@ class UberJar implements Callable<Integer> {
// file:foo.java is compiled to .class so we need to replace it
value = value.replaceAll("file:", "classpath:");
value = value.replaceAll(".java", ".class");
+ // special fix for generated files inside .camel-jbang
+ value = value.replaceAll("classpath:.camel-jbang/", "classpath:");
line = key + "=" + value;
}
return line;