Merge tag 'v2.3.28' into testing
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / osgi / Main.java
diff --git a/org.argeo.init/src/org/argeo/init/osgi/Main.java b/org.argeo.init/src/org/argeo/init/osgi/Main.java
deleted file mode 100644 (file)
index ce83329..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.argeo.init.osgi;
-
-import java.lang.management.ManagementFactory;
-
-public class Main {
-
-       public static void main(String[] args) {
-               String mainClass = System.getProperty(OsgiBoot.PROP_ARGEO_OSGI_BOOT_APPCLASS);
-               if (mainClass == null) {
-                       throw new IllegalArgumentException(
-                                       "System property " + OsgiBoot.PROP_ARGEO_OSGI_BOOT_APPCLASS + " must be specified");
-               }
-
-               OsgiBuilder osgi = new OsgiBuilder();
-               String distributionUrl = System.getProperty(OsgiBoot.PROP_ARGEO_OSGI_DISTRIBUTION_URL);
-               if (distributionUrl != null)
-                       osgi.install(distributionUrl);
-               // osgi.conf("argeo.node.useradmin.uris", "os:///");
-               // osgi.conf("osgi.clean", "true");
-               // osgi.conf("osgi.console", "true");
-               osgi.launch();
-
-               if (OsgiBootUtils.isDebug()) {
-                       long jvmUptime = ManagementFactory.getRuntimeMXBean().getUptime();
-                       String jvmUptimeStr = (jvmUptime / 1000) + "." + (jvmUptime % 1000) + "s";
-                       OsgiBootUtils.debug("Ready to launch " + mainClass + " in " + jvmUptimeStr);
-               }
-
-               osgi.main(mainClass, args);
-
-               osgi.shutdown();
-
-       }
-
-}