This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new fa24e32b Fix #910 (#911)
fa24e32b is described below
commit fa24e32ba37af70fb1f54dd73b69c7884ae44d4b
Author: Bruno Mendola <[email protected]>
AuthorDate: Wed Sep 27 23:50:05 2023 +0200
Fix #910 (#911)
Wrapped jbang JVM parameters with double quotes to support execution under
Windows Powershell
Co-authored-by: Bruno Mendola <[email protected]>
---
karavan-vscode/src/jbang.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/karavan-vscode/src/jbang.ts b/karavan-vscode/src/jbang.ts
index 8c4ac562..a8e9c207 100644
--- a/karavan-vscode/src/jbang.ts
+++ b/karavan-vscode/src/jbang.ts
@@ -46,7 +46,7 @@ export async function camelJbangGenerate(rootPath: string,
openApiFullPath: stri
function prepareCommand(command: string): string {
const version = workspace.getConfiguration().get("camel.version");
- return "jbang -Dcamel.jbang.version=" + version + " camel@apache/camel " +
command;
+ return "jbang \"-Dcamel.jbang.version=" + version + "\" camel@apache/camel
" + command;
}
export function camelJbangRun() {