You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Federico Mariani (Jira)" <ji...@apache.org> on 2021/12/10 16:07:00 UTC

[jira] [Created] (CAMEL-17317) camel:run with fileWatcherDirectory property fails

Federico Mariani created CAMEL-17317:
----------------------------------------

             Summary: camel:run with fileWatcherDirectory property fails
                 Key: CAMEL-17317
                 URL: https://issues.apache.org/jira/browse/CAMEL-17317
             Project: Camel
          Issue Type: Bug
            Reporter: Federico Mariani


Following [using-live-reload|https://camel.apache.org/manual/camel-maven-plugin.html#_using_live_reload_of_xml_files] documentation, the goal _camel:run_ fails with the following error:
{code:java}
[INFO] Starting Camel ...
Unknown option: -watch

Apache Camel Runner takes the following options

  -h or -help = Displays the help screen
  -r or -routers <routerBuilderClasses> = Sets the router builder classes which will be loaded while starting the camel context
  -d or -duration <duration> = Sets the time duration (seconds) that the application will run for before terminating.
  -dm or -durationMaxMessages <durationMaxMessages> = Sets the duration of maximum number of messages that the application will process before terminating.
  -di or -durationIdle <durationIdle> = Sets the idle time duration (seconds) duration that the application can be idle before terminating.
  -t or -trace = Enables tracing
  -ts or -traceStandby = Enables tracing standby
  -e or -exitcode <exitcode> = Sets the exit code if duration was hit
  -pl or -propertiesLocation <propertiesLocation> = Sets location(s) to load properties, such as from classpath or file system.
{code}
Is it a documentation issue or an actual bug?

The bug can be reproduced like this:
{code:java}
git checkout https://github.com/apache/camel-examples
cd camel-examples/examples/routeloader
mvn package && camel:run -Dcamel.fileWatcherDirectory=src/main/resources/myroutes
{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)