[ 
https://issues.apache.org/jira/browse/CAMEL-25423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-25423.
---------------------------------
    Resolution: Fixed

> camel-jbang - camel run --example with a runtime does not copy the data 
> folders of the example
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-25423
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25423
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.23.0
>
>
> camel run --example=<name> --runtime=camel-main (also spring-boot and 
> quarkus) exports the example into .camel-jbang-run/<time> and runs it there, 
> but the export copies the routes, properties and Java sources only, not the 
> data folders the example reads. route/content-based-router, 
> connect/file-processing and transform/csv-to-json ship sample files (orders/, 
> inbox/, samples/) and then process nothing:
> {noformat}
> FileConsumer : Auto-created starting directory: orders; waiting for files
> {noformat}
> The same examples work with the default runtime (JBang), which runs in the 
> example folder. The run form of the camel-jbang monitor defaults to Camel 
> Main for examples, so there the examples silently do nothing.
> Proposal: copy the other files and folders of the example into the run folder 
> (or run with the example folder as working directory); and default the run 
> form to JBang for examples.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to