Hello,

in my little test I'm trying the following,


public class CamelMainTry {
    public static void main(String[] args) throws Exception {
        Main main = new Main();
//        this works but I need to catch more
// main.configure().withRoutesIncludePattern("deploy/customer/PRIVATE/EXCHANGE/*.yaml");
//        these don't work:'
// main.configure().withRoutesIncludePattern("deploy/**/PRIVATE/EXCHANGE/*.yaml");
main.configure().withRoutesIncludePattern("deploy/*/PRIVATE/EXCHANGE/*.yaml");
        main.run();
    }
}

my files are located:

deploy/customer/PRIVATE/EXCHANGE/cust.yaml

deploy/register/bank/PRIVATE/EXCHANGE/reg.yaml

So there could be more directories in the middle; however it doesn't substitute even one.

The Ant-style (or what I'm thinking the Ant style) pattern doesn't seem to catch multiple directories. If I specify the directory explicitly it works, but I need it to locate the routes in dozens of directories.

How do I fix it?

(While we're at it I would also like to make it reload on the fly for the testing purposes, not all of the .yaml files but restricting it to my directory structure)

Thanks!

--fedd


Reply via email to