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

camel:run with fileWatcherDirectory property fails

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.14.0
    • documentation
    • None
    • Unknown

    Description

      Following using-live-reload documentation, the goal camel:run fails with the following error:

      [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.
      

      Is it a documentation issue or an actual bug?

      The bug can be reproduced like this:

      git checkout https://github.com/apache/camel-examples
      cd camel-examples/examples/routeloader
      mvn package && camel:run -Dcamel.fileWatcherDirectory=src/main/resources/myroutes
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            Federico Mariani Federico Mariani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment