Bundle-Version and package version have different meanings even though they share a common grammar.
When one imports a package, the version range specified on the import is matched against the version specified on the export. When one requires a bundle, the version range specified on the require bundle is matches against the version specified by the bundle. BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [EMAIL PROTECTED] office: +1 386 848 1781 mobile: +1 386 848 3788 "Trustin Lee" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/13/2007 03:31 AM Please respond to OSGi Developer Mail List <[email protected]> To OSGi-dev <[email protected]> cc Subject [osgi-dev] 'Bundle-Version' vs. 'version' attribute in 'Export-Package' Hi OSGi community, I'm reading OSGi tutorials in EclipseZone, and have a question about the version numbers in a manifest file. What is the difference between the 'Bundle-Version' and the 'version' attribute in 'Export-Package'? Can each version number of the exported packages have different version numbers and are they also considered irrelevant from the Bundle-Version? If so, should I specify the version number of the package I want to access along with the version of the bundle? It sounds very awkward to me. Thanks, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6 _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
