]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - osgi/runtime/org.argeo.osgi.boot/src/main/java/org/argeo/slc/osgiboot/OsgiBoot.java
Fix typo
[lgpl/argeo-commons.git] / osgi / runtime / org.argeo.osgi.boot / src / main / java / org / argeo / slc / osgiboot / OsgiBoot.java
index d54fa88993e031f7f146e392454a46dcc9622dc3..e33c87742e39464fa46a98878cd322ac16697ed0 100644 (file)
@@ -106,6 +106,10 @@ public class OsgiBoot {
                }
 
                System.setProperty(PROP_ARGEO_OSGI_DATA_DIR, dataDir.getAbsolutePath());
+
+               // TODO: Load additional system properties from file
+               // Properties additionalSystemProperties = new Properties();
+               
        }
 
        public static String removeFilePrefix(String url) {
@@ -118,6 +122,7 @@ public class OsgiBoot {
        }
 
        public void bootstrap() {
+               long begin = System.currentTimeMillis();
                System.out.println();
                info("OSGi bootstrap starting...");
                info("Writable data directory : "
@@ -128,7 +133,10 @@ public class OsgiBoot {
                installUrls(getModulesUrls());
                checkUnresolved();
                startBundles();
-               info("OSGi bootstrap completed");
+               long duration = System.currentTimeMillis() - begin;
+               info("OSGi bootstrap completed in "
+                               + Math.round(((double) duration) / 1000) + "s (" + duration
+                               + "ms), " + bundleContext.getBundles().length + " bundles");
                System.out.println();
        }