[
https://issues.apache.org/jira/browse/CAMEL-18092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534424#comment-17534424
]
Claus Ibsen commented on CAMEL-18092:
-------------------------------------
This is not really the primary use-case for jbang, as its not for regular maven
projects with source code in deep sub folders. At the moment its for source
code in a flat folder (current dir).
> 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
> Priority: Minor
>
> 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)