[ 
https://issues.apache.org/jira/browse/FELIX-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacobs Bert updated FELIX-3346:
-------------------------------

    Attachment: fileinstall-startlevel.patch

I've attached a patch ("fileinstall-lognstartlvl.patch") which changes
the following things: 

- When I configured the "felix.fileinstall.start.level" setting, the
component wouldn't run update or refresh when the framework's start
level is too low. I've introduced a new setting
"felix.fileinstall.active.level" to configure the scan behaviour, e.g.
so you can set it higher than the system bundle start-level so that
the framework bundles resolve first. By default, the file install
component now always updates, irregardless of the
"felix.fileinstall.start.level" setting.
- The bundle start level is now only set when a bundle is installed
and not every time a bundle gets restarted. I'd expect that a user
should be able to override the bundle start level instead of it being
reset each time the file install component triggers a bundle start.
- The bundle-start-level and start-new-bundles settings now work independently. 
The bundle start-level will get updated when configured, but the bundle will 
not be persistently started unless the start-setting is also true.

Please note that these changes might warrant a new minor release instead of a 
bug fix release.
                
> File Install doesn't scan when the framework start level is lower than 
> felix.fileinstall.start.level setting
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3346
>                 URL: https://issues.apache.org/jira/browse/FELIX-3346
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>         Environment: Karaf 2.2.5, Windows
>            Reporter: Jacobs Bert
>         Attachments: fileinstall-startlevel.patch
>
>
> 1. Set the OSGi start-level to 100 (Karaf default).
> 2. Configure the following setting in the system properties or factory config 
> for FileInstall:
>     felix.fileinstall.start.level = 150
> 3. Drop something in a folder watched by the File Install component. No 
> bundles get installed or updated.
> Expected behaviour is that bundles get installed, and obviously without them 
> starting.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to