Results 1 to 2 of 2

Thread: Package version number against bundle version No

  1. #1
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default Package version number against bundle version No

    When i have a bundle version number for example 10.0.0

    and I don't mention any version number in export package -

    Example :

    Manifest-Version: 1.0
    Bundle-Version: 10.0.0
    Bundle-Name: PackageExporter
    Bundle-ManifestVersion: 2
    Bundle-SymbolicName: PackageExporter
    Export-Package: com.test


    I see through package admin that they are exported at version 0.0.0 and not 10.0.0

    So i assume that there is no relationship between version of bundle and version of exported package.

    Also when I have many packages to be exported , is there a simple way to export it using bundles versions

    OR

    Should I append version in every exported package

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Yes, there is no relationship between the bundle and the package version. It's fairly often that a bundle version increases while the bundle package doesn't (for example the new bundle provides only extra resources or extra packages).
    See the OSGi spec for a detailed discussion on these topics.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •