Tomohisa Igarashi created CAMEL-19689:
-----------------------------------------

             Summary: 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


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)

Reply via email to