[ 
https://issues.apache.org/jira/browse/CAMEL-11490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071549#comment-16071549
 ] 

Claus Ibsen commented on CAMEL-11490:
-------------------------------------

Lets change this to include/exclude filtering and use ANT path pattern, which 
can match package names, and much more.

To exclude
{code}
@SpringBootTest(classes = BarTest.class,
    properties = 
{"camel.springboot.java-routes-exclude-pattern=**/Bar*,**/Drink*"})
{code}
And to include
{code}
@SpringBootTest(classes = BarTest.class,
    properties = {"camel.springboot.java-routes-include-pattern=**/Bar*"})
{code}

> camel-spring-boot - Make it easy to filter Java RoutesBuilder from properties
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-11490
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11490
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.19.2, 2.20.0
>
>
> Sometimes you may have multiple route builders in an app, and you may want to 
> be able to only  include one of them, and want to be able to configure this 
> via configuration properties / env variables instead of having to do source 
> code changes.
> This can also be used from unit testing to make it easier to select with 
> route builders to test.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to