Hi Okay for file system, you should favour prefixing with file:
main.configure().withRoutesIncludePattern("file:deploy/customer/PRIVATE/EXCHANGE/*.yaml"); On Wed, May 17, 2023 at 3:53 PM Fyodor Kravchenko <feddkr...@hotmail.com> wrote: > Hi, > > I'm trying to load the routes from the file system directly, it's Camel > 3.20.4, and it's java 19 from the GraalVM distribution running on Ubuntu > 22.04. The fact it sees the file when no wildcard is present tells me > that I'm missing something in the wildcards and the docs. > > Thank you! > > --fedd > > (sorry for the late response, only now I've got the rejection > notification for the html-formatted email) > > On 15.05.2023 11:01, Claus Ibsen wrote: > > Hi > > > > Are you loading these files from classpath or file system directly. > > And what Camel version do you use > > > > > > > > On Sun, May 14, 2023 at 5:39 PM Fyodor Kravchenko <feddkr...@hotmail.com > > > > wrote: > > > >> 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 > >> > >> > >> > -- Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://www.manning.com/ibsen2