DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
- The launcher supports setting the auto-deploy directory (with the
-bswitch) and setting the bundle cache path with a single argument, so check for this and issue a usage message it there are more than one arguments. - Load any system properties specified in the
system.propertiesfile; this file is typically located in theconf/directory of the Felix installation directory, but it can be specified directly using thefelix.system.propertiessystem property. This file is not needed to launch Felix and is provided merely for convenience when system properties must be specified. The file is a standard Java properties file, but it also supports property substitution using${<property-name} syntax. Property substitution can be nested; only system properties will be used for substitution. - Load any configuration properties specified in the
config.propertiesfile; this file is typically located in theconf/directory of the Felix installation directory, but it can be specified directly using thefelix.config.propertiessystem property. This file is used to configure the Felix instance created by the launcher. The file is a standard Java properties file, but it also supports property substitution using "${<property-name}" syntax. Property substitution can be nested; configuration and system properties will be used for substitution with configuration properties having precedence. - For convenience, any configuration properties that are set as system properties are copied into the set of configuration properties. This provide an easy way to add to or override configuration properties specified in the
config.propertiesfile, since the Felix instance will never look at system properties for configuration. - If the
-bswitch was used to specify an auto-deploy directory, then use that to set the value offelix.auto.deploy.dir. - If a single command-line argument is specified, then use that to set the value of
org.osgi.framework.storage; relative paths are relative to the current directory unless thefelix.cache.rootdirproperty is set. - Create a framework instance using the
FrameworkFactorypassing in the configuration properties, then initialize the factory instance. - Use
org.apache.felix.main.AutoProcessor, which will automatically deploy any bundles in the auto-deploy directory as well as bundles specified in thefelix.auto.installandfelix.auto.startconfiguration properties during framework startup to automatically install and/or start bundles; see the usage document for more information configuration properties and bundle auto-deploy. - Invoke
waitForStop()to wait for the framework to stop to force the VM to exit; this is necessary because the framework never callsSystem.exit()and some libraries (e.g., Swing) create threads that will not allow the VM to exit.
...