[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] [error] encoded string too long


On Fri, Apr 6, 2012 at 8:41 AM, Thomas Watson <tjwatson@xxxxxxxxxx> wrote:
Please open a bug as Pascal suggests. ÂWhat configuration property are you
using to configure in the system packages? ÂThere are two available:

I understand. Will do!

Â
org.osgi.framework.system.packages - This is intended to be filled in
automatically by the framework according the the VM class library the
framework is running on (e.g JavaSE 5 vs JavaSE 6). ÂI would not touch this
configuration property and just let the framework calculate it.

org.osgi.framework.system.packages.extra - This is intended to append
additional packages which your embedded environment may be providing to the
framework. ÂThis is where I would recommend you place your extra packages.

Correct, and I'm usingÂConstants.FRAMEWORK_SYSTEMPACKAGES_EXTRA as suggested by the OSGi documentation.
Â
ÂAnother option is to install a system bundle fragment which
is just an empty fragment to the system.bundle, all it contains is a bundle
manifest that declares the extra packages the system bundle should export
in your embedded environment.

This seems like a potentially sensible approach but turns a configurable situation into a hard coded one. The intention of the system "property" is that it can be changed according to needs without having to recompile, while a fragment bundle would have to hard code the list unless the fragment itself is created dynamically which would just seem like a hack.
Â
--
Raymond Augà Â|ÂSenior Software Architect |ÂLiferay, Inc.Â

---

25 Apr 2012Â|ÂLiferay Nordic SymposiumÂ|Âliferay.com/nordic2012ÂÂNEW!
17 May 2012 |ÂLiferayÂBudapest SymposiumÂ|Âliferay.com/budapest2012ÂÂ
23 May 2012 |ÂLiferayÂFrance SymposiumÂ|Âliferay.com/france2012