You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/10/07 19:39:00 UTC
[jira] [Created] (CAMEL-25423) camel-jbang - camel run --example with a runtime does not copy the data folders of the example
Claus Ibsen created CAMEL-25423:
-----------------------------------
Summary: 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
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)