Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D428C920B for ; Fri, 10 Feb 2012 15:41:24 +0000 (UTC) Received: (qmail 60235 invoked by uid 500); 10 Feb 2012 15:41:23 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 59705 invoked by uid 500); 10 Feb 2012 15:41:22 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 59697 invoked by uid 99); 10 Feb 2012 15:41:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 15:41:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 15:41:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7D22D1AE884 for ; Fri, 10 Feb 2012 15:40:59 +0000 (UTC) Date: Fri, 10 Feb 2012 15:40:59 +0000 (UTC) From: "JBert (Commented) (JIRA)" To: dev@felix.apache.org Message-ID: <1584024218.24503.1328888459514.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1316143742.24484.1328888219594.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (FELIX-3346) File Install doesn't scan when the framework start level is lower than felix.fileinstall.start.level setting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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/**/ 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