Hi, Your observation is correct. You either get the packages which the framework determined is available from the VM or you have to provide the complete list in the org.osgi.framework.system.packages yourself. In OSGi R4.2 (implemented in Equinox 3.5) we have added added a new property (org.osgi.framework.system.packages.extra) which can be used to add more packages to the ones the framework determines are available from the VM, but there is currently no "exclude" property.
Perhaps you should open a bug against OSGi athttps://www.osgi.org/bugzilla/ Tom |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Sameera Jayasoma <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Equinox development mailing list <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |04/07/2009 02:48 PM | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |[equinox-dev] Question on "org.osgi.framework.system.packages" | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi The system property "org.osgi.framework.system.packages" allows the system bundle to export packages from the parent class loader. If we do not explicitly set this property Equinox will export all the packages visible to the parent class loader. My requirement is to stop package "org.foo.bar" being exported through the system bundle. Is there a way to specify this in Equinox? The only solution I found is to set the "org.osgi.framework.system.packages" system property explicitly with the packages list except "org.foo.bar" package Thanks Sameera_______________________________________________ equinox-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/equinox-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ equinox-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/equinox-dev
