Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-18 Thread Fyodor Kravchenko
Hi, the API seems to have changed from the 3.20.4 that I'm using. Can I just replace the File Filter that the default Route Reloader is using? I've noticed it uses the Ant Matcher but deliberately ignores the whole path: https://github.com/apache/camel/blob/af9e3b4b9559ef18abf7eaba382a2991998

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-18 Thread Claus Ibsen
Hi You can implement a custom org.apache.camel.spi.ResourceReload where you in the onReload can program what to do. The current defauly just do if (name.endsWith(".properties")) { onPropertiesReload(resource, true); } else {

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-18 Thread Fyodor Kravchenko
Hi, Thank you! I'm new to the Camel 3 API, can you please point me how can I load a route programmatically if I have a yaml or xml String (or Stream/Reader)? Regarding the ticket, loading the new files after the startup, renaming the route files and deleting them would also be a useful devel

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Claus Ibsen
On Wed, May 17, 2023 at 10:59 PM Fyodor Kravchenko wrote: > Hi, > > I'm integrating Camel into my application, or better say, application > platform, that may run different arbitrary Camel routes for integration, > and I'd like to provide an ability for a developer who makes > applications for th

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Chirag
in a camel app, I have used property files to provide some of these params in place of passing them thru the code. You may want to explore that. ચિરાગ/चिराग/Chirag -- Sent from My Gmail Account On Wed, May 17, 2023 at 4:59 PM Fyodor Kravchenko wrote: > >

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
Hi, I'm integrating Camel into my application, or better say, application platform, that may run different arbitrary Camel routes for integration, and I'd like to provide an ability for a developer who makes applications for this platform to edit the routes during the development. I'm already

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Claus Ibsen
Hi What is your goal with this? The reload stuff is for development and not a production app server to "redeploy apps" or any sort of that. The intention is that you work on a single application. The reload is using Java APIs for "change file events" and this does not support an ANT style way an

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
I'm sorry please disregard my previous ramblings, moving the "deploy" directory to the working directory of the java app did the "include" trick. It worked without the "file:" prefix because it was looking into the "target" directry which was the classpath.. My fault. However, the additional q

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
Hi, thanks but this main.configure().withRoutesIncludePattern("file:deploy/customer/PRIVATE/EXCHANGE/*.yaml"); doesn't work saying "java.nio.file.NoSuchFileException: deploy/customer/PRIVATE/EXCHANGE" Like I've said previously, without the double asterisks, it does work _without_ the "file:"

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Claus Ibsen
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 wrote: > Hi, > > I'm trying to load the routes from the file system directly, it's Camel

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-17 Thread Fyodor Kravchenko
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! --f

Re: Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-15 Thread Claus Ibsen
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 wrote: > Hello, > > in my little test I'm trying the following, > > > public class CamelMainTry { > public static void main(String[]

Camel Main: RoutesIncludePattern doesn't seem to respect asterisks as a directory placeholder

2023-05-14 Thread Fyodor Kravchenko
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/EXCHA