2008/11/3 Sriharsha <[EMAIL PROTECTED]>

>
> In continuation with the first thread,
>
> I tried with the following options with bindex.
>
> Instead of specifying Require-Bundle in Bundle1's manifest, I specified
> package level dependency for Bundle1 as follows.
>
> Manifest-Version: 1.0
> Bundle-Name: Bundle1
> Bundle-Activator: com.consumer.ConsumerActivator
> Import-Package: org.osgi.framework,
> com.animal.cat;bundle-symbolic-name="Bundle2";bundle-version="1.0.0"
> Bundle-ManifestVersion: 2
> Bundle-SymbolicName: Bundle1
> Bundle-Version: 1.0.0
>
> Now the Bindex tool is giving the proper repository.xml as follows.(In the
> above thread it was not giving version at Require Bundle tag in
> repository.xml)
>
>  <resource id='Bundle1/1.0.0' presentationname='Bundle1'
> symbolicname='Bundle1' uri='/OSGI/Localrepo/Bundles/Bundle1_1.0.0.jar'
> version='1.0.0'>
>    <size>
>       1719
>     </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='(&(package=org.osgi.framework)(version>=0.0.0))' multiple='false'
> name='package' optional='false'>
>      Import package org.osgi.framework
>    </require>
>    <require extend='false'
>
> filter='(&(package=com.animal.cat)(version>=0.0.0)(bundle-version=1.0.0)(bundle-symbolic-name=Bundle2)(mandatory:<*bundle-version,
> bundle-symbolic-name))' multiple='false' name='package' optional='false'>
>      Import package com.mindtree.producer
>    </require>
>  </resource>
>
> Which is good thing but the problem still exists as the Felix OBR is unable
> to read this information, and the result is still as defined above. (Even
> having the version 1.0.0, the Bundle1 is getting resolved with Bundle2's
> version 1.1.0, which is not the intended solution for my problem)


hmm, this second issue looks like it might be a problem in the OBR resolver,
but I can't say for sure though - could you raise a new issue over at JIRA
and
attach a buildable testcase that demonstrates the bad resolve? (if you can't
provide a testcase attach the various logs, console output and manifests)

   http://issues.apache.org/jira/browse/FELIX


> --
> 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-tp20297305p20297676.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]
>
-- 
Cheers, Stuart

Reply via email to