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 2023/08/02 07:56:00 UTC
[jira] [Assigned] (CAMEL-19689) camel-jbang: Support loading data XML file
[ https://issues.apache.org/jira/browse/CAMEL-19689?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-19689:
-----------------------------------
Assignee: Claus Ibsen
> camel-jbang: Support loading data XML file
> ------------------------------------------
>
> Key: CAMEL-19689
> URL: https://issues.apache.org/jira/browse/CAMEL-19689
> Project: Camel
> Issue Type: Task
> 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)