I am facing an issue with package level version with bindex and OBR,
previously I was using required bundle, now I am writing dependencies on
packages,

Problem is ,

Bundle1 requires a packages called com.foo (version range from 1.0 to 2.0),
where in the package com.foo is exported by bundles Bundle2,version-1.1 and
Bundle3,version-1.0 respectively. 

Manifest of Bundle1 looks like ;

Manifest-Version: 1.0
Bundle-Name: Bundle1
Bundle-Activator: com.abc.consumer.ConsumerActivator
Import-Package: org.osgi.framework, com.foo;version="[1.0,2.0)"
Bundle-ManifestVersion: 2
Bundle-SymbolicName: Bundle1
Bundle-Version: 1.0.0 

then the generated repository.xml have the following content,

<resource id='Bundle1/1.0.0' presentationname='Bundle1'
symbolicname='Bundle1' uri='bundles/Bundle1/1.0.0/Bundle1_1.0.0.jar'
version='1.0.0'>
    <size>
      1709
    </size>
    <capability name='bundle'>
      <p n='manifestversion' v='2'/>
      <p n='presentationname' v='Bundle1'/>
      <p n='symbolicname' v='Bundle1'/>
      <p n='version' t='version' v='1.0.0'/>
    </capability>
<require extend='false'
filter='(&amp;(package=com.foo)(version&gt;=1.0.0)(version&lt;2.0.0))'
multiple='false' name='package' optional='false'>
      Import package com.foo;version=[1.0.0,2.0.0)
    </require>
    <require extend='false'
filter='(&(package=org.osgi.framework)(version>=0.0.0))' multiple='false'
name='package' optional='false'>
      Import package org.osgi.framework
    </require>
</resource> 


But when i try to deploy Bundle1 then I am getting the following exception,

         org.osgi.framework.InvalidSyntaxException: expected ~=|>=|<=

Please suggest a way to come out of this exception, or correct me if
something is wrong in the above manifest.

Thanks in advance,
Sriharsha.


-- 
View this message in context: 
http://www.nabble.com/bindex-tool-is-unable-to-retain-the-Require-Bundle-bundle-version-info-in-the-repository.xml-tp20297305p20537950.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to