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

Support reload with Camel JBang with files specified with a specific path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.16.0
    • 3.18.0
    • camel-jbang
    • None
    • Unknown

    Description

      Given this route in subfolder src/main/java/org/acme/timer/log :

      package org.acme.timer.log;
      
      import org.apache.camel.builder.RouteBuilder;
      
      public class TimerRoute extends RouteBuilder {
      
          @Override
          public void configure() throws Exception {
              from("timer:foo?period=1000")
                      .log("Hello World a first time")
                      .log("Helloss World a second time - modified ");
          }
      }
      

      when calling:

      jbang -Dcamel.jbang.version=3.17.0-SNAPSHOT camel@apache/camel run src/main/java/org/acme/timer/log/TimerRoute.java --logging-level=info --reload --dep=org.apache.camel:camel-debug

      when modifying the route and saving it, the route is not restarted.

      Given that the file path has been provided, the reload shoudl be able to watch for it even if it is in a subfolder

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            apupier Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: