This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180427 - osgi bundle is missing exported packages in manifest.mf
Summary: osgi bundle is missing exported packages in manifest.mf
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-08 06:16 UTC by Tomas Danek
Modified: 2010-02-12 07:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2010-02-08 06:16:14 UTC
Product Version: NetBeans IDE Dev (Build 201002080200)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/tomas/.netbeans/dev

- created standalone module - osgi bundle
- created some api package, set as public package using customizer
- built jar
- manifest.mf in jar does not contain exported package tag:

Manifest-Version: 1.0                                                                                                                                                                                     
Ant-Version: Apache Ant 1.7.1                                                                                                                                                                             
Created-By: 14.3-b01-101 (Apple Inc.)                                                                                                                                                                     
OpenIDE-Module-Public-Packages: o.y.standalone.api.*                                                                                                                                                      
OpenIDE-Module-Java-Dependencies: Java > 1.6                                                                                                                                                              
OpenIDE-Module-Implementation-Version: 100208                                                                                                                                                             
AutoUpdate-Show-In-Client: true                                                                                                                                                                           
Bundle-Activator: o.y.standalone.Installer                                                                                                                                                                
Bundle-Localization: o/y/standalone/Bundle                                                                                                                                                                
Bundle-Name: %OpenIDE-Module-Name                                                                                                                                                                         
Bundle-SymbolicName: o.y.standalone                                                                                                                                                                       
Bundle-Version: 1.0                                                                                                                                                                                       
Import-Package: org.osgi.framework                                                                                                                                                                        
OpenIDE-Module: o.y.standalone                                                                                                                                                                            
OpenIDE-Module-Requires: org.openide.modules.ModuleFormat1
Comment 1 Jaroslav Tulach 2010-02-08 08:43:17 UTC
The project customizer adds OpenIDE-Module tag, which then disables generation of other the OSGi attributes in the module.
Comment 2 Jaroslav Tulach 2010-02-08 09:30:28 UTC
core-main#0f7a97b4e22a
Comment 3 Quality Engineering 2010-02-08 21:44:23 UTC
Integrated into 'main-golden', will be available in build *201002090200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0f7a97b4e22a
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #180427: When regenerating manifest, preserve Bundle-SystemName, if already present
Comment 4 Tomas Danek 2010-02-12 07:40:52 UTC
v. in 20100211