Home » Eclipse Projects » Equinox » Behavor change from version 3.2.1 to 3.3M4. Regression?
Behavor change from version 3.2.1 to 3.3M4. Regression? [message #83044] |
Tue, 06 February 2007 16:21  |
Eclipse User |
|
|
|
Hi I am trying to get an instance of the extension registry by calling
org.eclipse.core.runtime.Platform.getExtensionRegistry() api. however
it seems that this api ruturns null when I use equinox 3.3M4 driver.
However when I use the equinox R-3.2.1-200609210945 I get an instance
of the extension registry.
I created a simple test.
import org.eclipse.core.runtime.adaptor.EclipseStarter
/**
* @param args
*/
public static void main(String[] args) throws Exception {
// startup the OSGi framework,
String driver =
"E:\\development\\equinoxTests\\I20070206-0010\\eclipse\\";
String osgijar =
" file:/E:/development/equinoxTests/I20070206-0010/eclipse/plu gins/org.eclipse.osgi_3.3.0.N20070129-0010.jar ";
System.setProperty( "osgi.parentClassloader", "fwk" );
System.setProperty("osgi.install.area", driver );
System.setProperty("osgi.configuration.area",
driver+"configuration");
System.setProperty("osgi.instance.area",
driver+"workspace");
System.setProperty( "eclipse.ignoreApp", "true" );
System.setProperty( "osgi.noShutdown", "true" );
System.setProperty("osgi.framework", osgijar );
System.setProperty(
"osgi.framework.useSystemProperties", "true" );
EclipseStarter.startup(args, null);
System.out.println(org.eclipse.core.runtime.Platform.getExte nsionRegistry());
EclipseStarter.shutdown();
}
My config.ini file is stored under the conifguration directory and has
the following content:
#Product Runtime Configuration File
eclipse.product=test.ServicesSDK
osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.jobs@2:start,org.eclipse.core.runtime.compatibility.registry,org.eclipse.equinox.registry@2:start,org.eclipse.equinox.preferences@2:start,org.eclipse.core.contenttype,org.eclipse.core.runtime@2:start,org.eclipse.update.configurator@3:start
osgi.bundles.defaultStartLevel=4
Note: I used the following eclipse runtime in my test.
http://fullmoon.torolab.ibm.com/downloads/drops/I20070123-17 15/download.php?dropFile=eclipse-RCP-I20070123-1715-win32.zi p
Am I doing something wrong? Do I need to change something so that it
works with version 3.3?
Thanks,
Sheldon.
|
|
|
Re: Behavor change from version 3.2.1 to 3.3M4. Regression? [message #83246 is a reply to message #83044] |
Tue, 13 February 2007 11:01  |
Eclipse User |
|
|
|
Hi Sheldon,
Some answers are in the Eclipse BugZilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=174009.
Sincerely,
Oleg Besedin
<sleeloy@ca.ibm.com> wrote in message
news:d4rhs2h7am08kkg3ski24h8srs0p5t5qd8@4ax.com...
> Hi I am trying to get an instance of the extension registry by calling
> org.eclipse.core.runtime.Platform.getExtensionRegistry() api. however
> it seems that this api ruturns null when I use equinox 3.3M4 driver.
> However when I use the equinox R-3.2.1-200609210945 I get an instance
> of the extension registry.
>
> I created a simple test.
>
> import org.eclipse.core.runtime.adaptor.EclipseStarter
>
> /**
> * @param args
> */
> public static void main(String[] args) throws Exception {
> // startup the OSGi framework,
> String driver =
> "E:\\development\\equinoxTests\\I20070206-0010\\eclipse\\";
> String osgijar =
> " file:/E:/development/equinoxTests/I20070206-0010/eclipse/plu gins/org.eclipse.osgi_3.3.0.N20070129-0010.jar ";
> System.setProperty( "osgi.parentClassloader", "fwk" );
> System.setProperty("osgi.install.area", driver );
> System.setProperty("osgi.configuration.area",
> driver+"configuration");
> System.setProperty("osgi.instance.area",
> driver+"workspace");
> System.setProperty( "eclipse.ignoreApp", "true" );
> System.setProperty( "osgi.noShutdown", "true" );
> System.setProperty("osgi.framework", osgijar );
> System.setProperty(
> "osgi.framework.useSystemProperties", "true" );
> EclipseStarter.startup(args, null);
>
> System.out.println(org.eclipse.core.runtime.Platform.getExte nsionRegistry());
> EclipseStarter.shutdown();
> }
>
> My config.ini file is stored under the conifguration directory and has
> the following content:
>
> #Product Runtime Configuration File
> eclipse.product=test.ServicesSDK
> osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.jobs@2:start,org.eclipse.core.runtime.compatibility.registry,org.eclipse.equinox.registry@2:start,org.eclipse.equinox.preferences@2:start,org.eclipse.core.contenttype,org.eclipse.core.runtime@2:start,org.eclipse.update.configurator@3:start
> osgi.bundles.defaultStartLevel=4
>
>
> Note: I used the following eclipse runtime in my test.
> http://fullmoon.torolab.ibm.com/downloads/drops/I20070123-17 15/download.php?dropFile=eclipse-RCP-I20070123-1715-win32.zi p
>
> Am I doing something wrong? Do I need to change something so that it
> works with version 3.3?
>
> Thanks,
>
> Sheldon.
|
|
|
Goto Forum:
Current Time: Mon Mar 10 21:33:04 EDT 2025
Powered by FUDForum. Page generated in 0.05551 seconds
|