[ https://issues.apache.org/jira/browse/CAMEL-19689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-19689: -------------------------------- Issue Type: Improvement (was: Task) > camel-jbang: Support loading data XML file > ------------------------------------------ > > Key: CAMEL-19689 > URL: https://issues.apache.org/jira/browse/CAMEL-19689 > Project: Camel > Issue Type: Improvement > Components: camel-jbang > Affects Versions: 4.0-RC2 > Reporter: Tomohisa Igarashi > Assignee: Claus Ibsen > Priority: Major > Fix For: 4.0.0 > > > Let's say I have > * src/main/resources/route.yaml > * src/main/resources/first.xml > And route.yaml loads the first.xml like this > {code:yaml} > - set-body: > simple: "resource:classpath:first.xml" > {code} > If I run this with camel-jbang, it can't resolve the first.xml file. > {noformat} > camel run src/main/resources/* > ... > Caused by: java.io.FileNotFoundException: Cannot find resource: > classpath:first.xml for URI: classpath:first.xml > ... > {noformat} > Claus suggested that it might be assuming all the XML files as Camel route > XML DSL. It would be handy if this works with camel-jbang OOTB. -- This message was sent by Atlassian Jira (v8.20.10#820010)