Hi, I'm trying to get org.osgi.framework.version property from
framework DTO, this way:
FrameworkDTO framework = getSystemBundleContext().getBundle().adapt(
FrameworkDTO.class);
frameworkVersion = (String) framework.properties
.get(Constants.FRAMEWORK_VERSION);
The FrameworkDTO contains the framework launch properties. Not all of the
properties available to BundleContext.getProperty. So unless a property is
passed to the FrameworkFactory.newInstance method (the launch properties),
it wont be visible in FrameworkDTO. Unless you need a DTO to send the
BJ,
the sentence bellow is still returning null:
frameworkVersion = (String) getSystemBundleContext().getProperty(
Constants.FRAMEWORK_VERSION);
2014/1/18 BJ Hargrave hargr...@us.ibm.com
The FrameworkDTO contains the framework launch properties. Not all of the
properties
Hmm. Open a bug please.
--
BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
hargr...@us.ibm.com
office: +1 386 848 1781
mobile: +1 386 848 3788
From: Cristiano Gavião cvgav...@gmail.com
To: Equinox development mailing list equinox-dev@eclipse.org