You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/05/24 08:42:00 UTC

[jira] [Resolved] (CAMEL-18092) Support reload with Camel JBang with files specified with a specific path

     [ https://issues.apache.org/jira/browse/CAMEL-18092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-18092.
---------------------------------
    Resolution: Fixed

> Support reload with Camel JBang with files specified with a specific path
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-18092
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18092
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>    Affects Versions: 3.16.0
>            Reporter: Aurélien Pupier
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.18.0
>
>
> Given this route in subfolder src/main/java/org/acme/timer/log :
> {noformat}
> 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 ");
>     }
> }
> {noformat}
> when calling:
> {noformat}
> 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{noformat}
> 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



--
This message was sent by Atlassian Jira
(v8.20.7#820007)