Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19689

camel-jbang: Support loading data XML file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0-RC2
    • 4.0.0
    • camel-jbang
    • None
    • Unknown

    Description

      Let's say I have

      • src/main/resources/route.yaml
      • src/main/resources/first.xml

      And route.yaml loads the first.xml like this

            - set-body: 
                simple: "resource:classpath:first.xml"
      

      If I run this with camel-jbang, it can't resolve the first.xml file.

      camel run src/main/resources/*
      ...
      Caused by: java.io.FileNotFoundException: Cannot find resource: classpath:first.xml for URI: classpath:first.xml
      ...
      

      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.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              igarashitm Tomohisa Igarashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: