Return-Path: Delivered-To: apmail-felix-commits-archive@www.apache.org Received: (qmail 50409 invoked from network); 28 Jul 2009 09:24:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jul 2009 09:24:06 -0000 Received: (qmail 55635 invoked by uid 500); 28 Jul 2009 09:25:23 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 55546 invoked by uid 500); 28 Jul 2009 09:25:23 -0000 Mailing-List: contact commits-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 commits@felix.apache.org Received: (qmail 55537 invoked by uid 99); 28 Jul 2009 09:25:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 09:25:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 09:25:21 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id F2E2B23888E4; Tue, 28 Jul 2009 09:24:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r798464 - in /felix/trunk/karaf: assembly/src/main/filtered-resources/etc/config.properties main/src/main/java/org/apache/felix/karaf/main/Main.java Date: Tue, 28 Jul 2009 09:24:59 -0000 To: commits@felix.apache.org From: gnodet@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090728092459.F2E2B23888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gnodet Date: Tue Jul 28 09:24:58 2009 New Revision: 798464 URL: http://svn.apache.org/viewvc?rev=798464&view=rev Log: Fix bundle start level so that it is independant of the framework Modified: felix/trunk/karaf/assembly/src/main/filtered-resources/etc/config.properties felix/trunk/karaf/main/src/main/java/org/apache/felix/karaf/main/Main.java Modified: felix/trunk/karaf/assembly/src/main/filtered-resources/etc/config.properties URL: http://svn.apache.org/viewvc/felix/trunk/karaf/assembly/src/main/filtered-resources/etc/config.properties?rev=798464&r1=798463&r2=798464&view=diff ============================================================================== --- felix/trunk/karaf/assembly/src/main/filtered-resources/etc/config.properties (original) +++ felix/trunk/karaf/assembly/src/main/filtered-resources/etc/config.properties Tue Jul 28 09:24:58 2009 @@ -35,16 +35,11 @@ org.osgi.framework.bootdelegation=sun.*,com.sun.management* # To enable the use of the startup.properties file to control the start level: -felix.auto.start=startup.properties +karaf.auto.start=startup.properties #felix.auto.start=all org.osgi.framework.startlevel.beginning=100 -felix.startlevel.bundle=60 -#framework.service.urlhandlers=false - -# Only works on Felix 1.4+ -felix.fragment.validation=warning -# felix.log.level=1 +karaf.startlevel.bundle=60 # # Bundle config properties. Modified: felix/trunk/karaf/main/src/main/java/org/apache/felix/karaf/main/Main.java URL: http://svn.apache.org/viewvc/felix/trunk/karaf/main/src/main/java/org/apache/felix/karaf/main/Main.java?rev=798464&r1=798463&r2=798464&view=diff ============================================================================== --- felix/trunk/karaf/main/src/main/java/org/apache/felix/karaf/main/Main.java (original) +++ felix/trunk/karaf/main/src/main/java/org/apache/felix/karaf/main/Main.java Tue Jul 28 09:24:58 2009 @@ -74,11 +74,11 @@ /** * The property name prefix for the launcher's auto-install property. */ - public static final String PROPERTY_AUTO_INSTALL = "felix.auto.install"; + public static final String PROPERTY_AUTO_INSTALL = "karaf.auto.install"; /** * The property for auto-discovering the bundles */ - public static final String PROPERTY_AUTO_START = "felix.auto.start"; + public static final String PROPERTY_AUTO_START = "karaf.auto.start"; /** * The system property for specifying the Karaf home directory. The home directory * hold the binary install of Karaf. @@ -349,6 +349,17 @@ StartLevel sl = (StartLevel) context.getService( context.getServiceReference(org.osgi.service.startlevel.StartLevel.class.getName())); + // Set the default bundle start level + int ibsl = 60; + try { + String str = configProps.getProperty("karaf.startlevel.bundle"); + if (str != null) { + ibsl = Integer.parseInt(str); + } + } catch (Throwable t) { + } + sl.setInitialBundleStartLevel(ibsl); + // The auto-install property specifies a space-delimited list of // bundle URLs to be automatically installed into each new profile; // the start level to which the bundles are assigned is specified by