[
https://issues.apache.org/jira/browse/FELIX-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205510#comment-13205510
]
JBert commented on FELIX-3346:
------------------------------
Just a note for someone willing to work on this:
fileinstall/src/main/java/org/apache/felis/fileinstall/internal/DirectoryWatcher.java
has the following on line 262:
// Waiting for start level
if (FileInstall.getStartLevel().getStartLevel() >= startLevel)
{
Set/*<File>*/ files = scanner.scan(false);
// Check that there is a result. If not, this means that
the directory can not be listed,
// so it's presumably not a valid directory (it may have
been deleted by someone).
// In such case, just sleep
if (files != null)
{
process(files);
}
}
I'm not sure why that if was added (maybe process(...) has no idea about the
start level) but this causes the component to idle when the start level
configured in felix.fileinstall.start.level is not reached.
> 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: JBert
>
> 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