diff options
author | Thomas Watson | 2005-02-11 22:00:33 +0000 |
---|---|---|
committer | Thomas Watson | 2005-02-11 22:00:33 +0000 |
commit | dcd15d681fad0cead3c8ee9588a07341d664ff64 (patch) | |
tree | ff874288f4916d6d9706862f47f268c67f152519 | |
parent | bb361c16e9bc30a4855a166a3d318d0e00553dd9 (diff) | |
download | rt.equinox.framework-dcd15d681fad0cead3c8ee9588a07341d664ff64.tar.gz rt.equinox.framework-dcd15d681fad0cead3c8ee9588a07341d664ff64.tar.xz rt.equinox.framework-dcd15d681fad0cead3c8ee9588a07341d664ff64.zip |
Fix to add the intial framework.extensions list to the initial osgi.bundles list.
-rw-r--r-- | bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java index 3d68a8cfe..0f19d1c2f 100644 --- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java +++ b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java @@ -72,6 +72,7 @@ public class EclipseStarter { // System properties public static final String PROP_BUNDLES = "osgi.bundles"; //$NON-NLS-1$ public static final String PROP_BUNDLES_STARTLEVEL = "osgi.bundles.defaultStartLevel"; //$NON-NLS-1$ //The start level used to install the bundles + public static final String PROP_EXTENSIONS = "osgi.framework.extensions"; //$NON-NLS-1$ public static final String PROP_INITIAL_STARTLEVEL = "osgi.startLevel"; //$NON-NLS-1$ //The start level when the fwl start public static final String PROP_DEBUG = "osgi.debug"; //$NON-NLS-1$ public static final String PROP_DEV = "osgi.dev"; //$NON-NLS-1$ @@ -476,7 +477,8 @@ public class EclipseStarter { */ private static Bundle[] loadBasicBundles() throws IOException { long startTime = System.currentTimeMillis(); - String[] installEntries = getArrayFromList(System.getProperty(PROP_BUNDLES), ","); //$NON-NLS-1$ + String[] installEntries = catenateLists(getArrayFromList(System.getProperty(PROP_EXTENSIONS), ","), getArrayFromList(System.getProperty(PROP_BUNDLES), ",")); //$NON-NLS-1$ //$NON-NLS-2$ + // get the initial bundle list from the installEntries InitialBundle[] initialBundles = getInitialBundles(installEntries); // get the list of currently installed initial bundles from the framework @@ -957,6 +959,15 @@ public class EclipseStarter { return result; } + private static String[] catenateLists(String[] prepend, String[] append) { + if (prepend.length == 0) + return append; + String[] result = new String[prepend.length + append.length]; + System.arraycopy(prepend, 0, result, 0, prepend.length); + System.arraycopy(append, 0, result, prepend.length, append.length); + return result; + } + private static void mergeProperties(Properties destination, Properties source) { for (Enumeration e = source.keys(); e.hasMoreElements();) { String key = (String) e.nextElement(); |