mgubaidullin commented on PR #1667:
URL: https://github.com/apache/camel-karavan/pull/1667#issuecomment-7427817893

   Thanks for the PR and for splitting it out of #1664.
   
   We'd like to keep one path setting, so users don't have to work out which of 
several Kamelet paths applies where.
   
   For Kamelets shipped in a JAR, add the JAR at runtime with 
`camel.jbang.dependencies` in the project's `application.properties`, e.g.:
   ```
   camel.jbang.dependencies=com.example:my-kamelets:1.0.0
   ```
   To avoid loading the same Kamelets twice (from the JAR and from the editor 
directory), we could make `--local-kamelet-dir` optional in `camelJbangRun` and 
`createExportCommand` (`src/jbang.ts`), controlled by a boolean 
`Karavan.kameletsPathForJBang` (default `true`, so existing setups keep 
working). With it set to false, `Karavan.kameletsPath` is used by the editor 
only.
   
   Would you be up for reworking the PR in that direction? Your directory check 
and path quoting are worth keeping: pass `--local-kamelet-dir` only when 
`Karavan.kameletsPath` is an existing local directory, and quote it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to