Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] osgi.framework.extensions System Property


Tom,

>- when you are developing the extension bundle in your workspace then you must also have org.eclipse.osgi as a source project in your workspace.
>- when deploying your framework extension bundle to an eclipse installation you must co-locate it with the org.eclipse.osgi bundle.  In other words it must

>be installed in the same "plugins" directory where org.eclipse.osgi is located.
There seem to be 2 separate issues here: using a URL (https://bugs.eclipse.org/bugs/show_bug.cgi?id=140610) and needing to import org.eclipse.osgi. While it is _not_ unreasonable to have to import the org.eclipse.osgi bundle into a workspace to develop and test a framework extension it _does_ seem unreasonable to have to import it in source from and build it. The symptoms I see are that while my extension (a source project in my workspace with the necessary hookconfigurators.properties file) is recognized and loaded according to the trace, my HookConfigurator is not driven:

Configuration location:
    file:/C:/workspaces/aspects-equinox-incubator-1/.metadata/.plugins/org.eclipse.pde.core/pde-junit/
Configuration file:
    file:/C:/workspaces/aspects-equinox-incubator-1/.metadata/.plugins/org.eclipse.pde.core/pde-junit/config.ini loaded
Install location:
    file:/C:/eclipse_3.2M6/
Framework located:
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/
Loading extension: org.aspectj.osgi
        eclipse.properties not found
Framework classpath:
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/org.eclipse.osgi_3.2.0.v20060426.jarjava version "1.5.0_05"
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/
    file:/C:/workspaces/aspects-equinox-incubator-1/org.aspectj.osgi/
Debug options:
    file:/C:/workspaces/aspects-equinox-incubator-1/.metadata/.plugins/org.eclipse.pde.core/pde-junit/.options loaded
Time to load bundles: 70
Starting application: 2313

When I have org.eclipse.osgi as a source project I get the following:

Configuration location:
    file:/C:/workspaces/aspects-equinox-incubator-1/.metadata/.plugins/org.eclipse.pde.core/pde-junit/
Configuration file:
    file:/C:/workspaces/aspects-equinox-incubator-1/.metadata/.plugins/org.eclipse.pde.core/pde-junit/config.ini loaded
Install location:
    file:/C:/eclipse_3.2M6/
Framework located:
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/
Loading extension: org.aspectj.osgi
        eclipse.properties not found
Framework classpath:
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/bin/
    file:/C:/workspaces/aspects-equinox-incubator-1/org.aspectj.osgi/bin/
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/
    file:/C:/workspaces/aspects-equinox-incubator-1/org.eclipse.osgi/
    file:/C:/workspaces/aspects-equinox-incubator-1/org.aspectj.osgi/
Debug options:
    file:/C:/workspaces/aspects-equinox-incubator-1/.metadata/.plugins/org.eclipse.pde.core/pde-junit/.options loaded
Time to load bundles: 80
Starting application: 2083

The main difference seems to be that my extension org.aspectj.osgi is not added to the Framework classpath which may explain why my HookConfigurator is not found.

Thanks

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx

http://w3.hursley.ibm.com/~websterm/

Back to the top