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 2021/12/10 16:20:00 UTC

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

    [ https://issues.apache.org/jira/browse/CAMEL-17317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457241#comment-17457241 ] 

Claus Ibsen commented on CAMEL-17317:
-------------------------------------

Ah that was some old functionality we had previously. I forgot to remove it from this maven plugin and its documentation. This should be removed.

And instead we should do the new stuff that you work on with camel:dev

> 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
>            Priority: Minor
>
> 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)