On Tue, Mar 15, 2016 at 12:04 PM, David Jencks < [email protected]> wrote:
> I’d say the 2.5.4 version was producing invalid syntax and the 3.0.1 > version is following the spec. Cmpn 6 section 135.4 (p. 997) indicates the > type must be indicated as List<String>. The effective:=active only goes on > the Require-Capability header generated from a reference. > > I wasn’t aware that properties could be specified in these headers. If > you want them, please open a bug in bnd at github and I will discuss it > with the experts and if there is no objection implement adding them. > Thanks David. I've already added an issue to the bndtools also [1]. Please let me know if further information is required. [1]. https://github.com/bndtools/bndtools/issues/1300 Regards, Aruna > > thanks > david jencks > > > > On Mar 14, 2016, at 5:54 AM, Aruna Karunarathna <[email protected]> > wrote: > > > > Hi Devs, > > > > Recently I've upgraded from maven-bundle-plugin verssion from 2.5.4 to > > 3.0.1 and I am experiencing the following behavior with the latest > version. > > > > I have following section in Sample class > > > > @Component( > > name = > > > "org.wso2.carbon.kernel.internal.deployment.DeploymentEngineListenerComponent", > > immediate = true, > > > > > > > > *property = { > > "capability-name=org.wso2.carbon.kernel.deployment.Deployer", > > "component-key=carbon-deployment-service" }* > > ) > > > > for the 2.5.4 version's generated MANIFEST.MF I could see the following > in > > Provide-Capability section. > > > > Provide-Capability: osgi.service;effective:=active;objectClass="org.wso2 > > .carbon.kernel.startupresolver.RequiredCapabilityListener";capability-n > > ame="org.wso2.carbon.sample.deployer.mgt.Deployer";component-key=carbon > > -sample-deployment-engine > > > > And for the 3.0.1 version's generated MANIFEST.MF I could see the > following > > in Provide-Capability section. the property tag inside the Component > > annotation is missing. and also the objectClass is changed to > > objectClass:List<String>. > > > > Provide-Capability: osgi.service;objectClass:List<String>="org.wso2.carb > > on.kernel.startupresolver.RequiredCapabilityListener" > > > > How do I make the properties inside the Component section available in > > MANIFEST.MF in the 3.0.1 version? > > > > Regards, > > Aruna > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- *Aruna Sujith Karunarathna* WSO2 Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: [email protected] | Web: www.wso2.com

