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

ASF GitHub Bot commented on FELIX-5137:
---------------------------------------

GitHub user CodingFabian opened a pull request:

    https://github.com/apache/felix/pull/47

    FELIX-5137 Added felix.fileinstall.subdir.mode = jar | skip | recurse

    This PR adds the ability to configure the mode fileinstall operates. the 
default mode is "jar" which means subdirectories in watched directories are 
treated as exploded jar.
    "skip" just skips subdirectories (for example to install a second watcher 
in that dir with different update interval)
    "recurse" will now pick the config files in any nested directory as if they 
would be in the watched directory. iThis mode is designed to "organize" config 
files in subdirectories

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/CodingFabian/felix new_subdir_mode_feature

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/felix/pull/47.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 #47
    
----
commit 5248f4878eff70ac75ba7fe8c667686d3cd0da17
Author: Fabian Lange <lange.fab...@gmail.com>
Date:   2015-12-11T09:38:38Z

    FELIX-5137 Added felix.fileinstall.subdir.mode = jar | skip | recurse

----


> Felix Fileinstall: add support for recursing and skipping subdirectories
> ------------------------------------------------------------------------
>
>                 Key: FELIX-5137
>                 URL: https://issues.apache.org/jira/browse/FELIX-5137
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.5.0
>            Reporter: Fabian Lange
>
> The current implementation follows the following pattern:
> if a file in a watched directory is changed, it is updated. If it resides in 
> a subdirectory, that subdirectory is treated as jar.
> Sometimes it could be desired to organize files in subdirectories which shall 
> not be treated as jars. sometimes you might want to have a separate watcher 
> for a subdirectory, so the parent should skip them.
> therefor I propose the addition of a new property called 
> "felix.fileinstall.subdir.mode" with the values "jar", "recurse" and "skip". 
> jar being default if unset.
> This also would fix the problem described in FELIX-5134 which was found to 
> be: works as designed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to