[
https://issues.apache.org/jira/browse/CAMEL-11275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049000#comment-16049000
]
ASF GitHub Bot commented on CAMEL-11275:
----------------------------------------
GitHub user onders86 opened a pull request:
https://github.com/apache/camel/pull/1759
CAMEL-11275 FileWatcherReloadStrategy watches sub directories as well if
isRecursive is true
FileWatcherReloadStrategy will watch sub-directories for a given path. This
implementation will help if you have xml based routes configuration and for a
given camelContext and if you have routeContexts imported and those imported
xml routes are part of subdirectory of the camelContext. (see
camel-example-reload)
isRecursive flag is defaulted to be false to avoid potential Shutdown
problems if you have multiple xml route configurations and none are imported
and somehow they are nested under the same path.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/onders86/camel CAMEL-11275
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/1759.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1759
----
----
> FileWatcherReloadStrategy only watches on specific folder and no sub-folders
> ----------------------------------------------------------------------------
>
> Key: CAMEL-11275
> URL: https://issues.apache.org/jira/browse/CAMEL-11275
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.19.0
> Reporter: Ronny Aerts
> Assignee: onder sezgin
> Priority: Minor
> Fix For: 2.20.0
>
> Attachments: RouteWatcherReloadStrategy.java
>
>
> The FileWatcherReloadStrategy can be configured to watch for changes in one
> specific folder. I created ticket CAMEL-11273 in order to also check for
> changed routeContext files. To point is that we use a lot routeContext files
> in a lot of folders and it is not possible to configure all those folders.
> I would be very nice for me to able to specify that a folder can be watched
> recursively (see
> http://stackoverflow.com/questions/18701242/how-to-watch-a-folder-and-subfolders-for-changes).
>
> Another improved is to be able to watch several folders. The used
> WatchService is able to handle multiple folders.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)