Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] system bundle package exports


The profile is selected based on the value of java.specification.version.  I would not recommend changing the profile in org.eclipse.osgi to export an additional package from the VM.  Instead you should create a framework fragment (see section 3.15 of the OSGi specification).  A framework fragment bundle (or extension bundle) can be used to export additional packages from the VM.  For example, if you need to export the "sun.print" package you could create a fragment bundle with the following bundle manifest.

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Sun Print packages
Bundle-SymbolicName: my.framework.fragment
Fragment-Host: system.bundle
Export-Package: sun.print

The fragment bundle would not actually contain any java code it would just be a jar with a single /META-INF/MANIFEST.MF file used to add a new export to the system bundle.

You could also use the osgi.java.profile property to point the framework to your own profile.  Search for osgi.java.profile in Eclipse help for more information..

HTH

Tom



Pierre Parrend <pierre.parrend@xxxxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

01/19/2007 07:59 AM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
equinox-dev@xxxxxxxxxxx
cc
Subject
[equinox-dev] system bundle package exports






Hello,

I am new to equinox, and I'd like to port a utility I am currently building for
signing and publishing bundles on the platform.
I need to export some extra packages from the system bundle.
However, when I add package export to the 'J2SE-1.5.profile' file, they do not
appear to be exported inside the platform (they do not appear in the console
when I type 'packages 0'). How can I make them available ?

Moreover, I have not found where the '*.profile' file to be used is selected.
Is it done according to the jvm version ?

thank for the information

Pierre P.

--
Pierre Parrend
doctorant, moniteur
laboratoire CITI, 21, Av. Jean Capelle
69621 Villeurbanne Cedex
pierre.parrend@xxxxxxxxxxxx
www.rzo.free.fr
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Back to the top