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

Add support for ANT path matcher for the RouteBuilder package scanner

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 2.0-M2
    • camel-spring
    • None

    Description

      When using the <package>com.mycompany.foo</package> tag to auto discover any RouteBuilder impl and install its route it is sometimes desireable to be able to exclude some routes.

      We should add support for ANT path matching style.
      As its spring based we can leverage the spring ANT path matcher we already do for the file and ftp components.

      And we should consider renaming <package> to <package-scan> as its more clear what it does.

      Or maybe inline it in the routeBuilder tag, as it would be more clear that the package is for route builders:

      <routeBuilder>
        <package-scan>xxxxx</package-scan>
        <excludes>**/*MyTestRoute*</excludes>
      </routeBuilder>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: