Bug 351157 - Codan Source Plugin has incorrect Bundle-Name / Bundle-Vendor
Summary: Codan Source Plugin has incorrect Bundle-Name / Bundle-Vendor
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-releng (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-releng-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on: 351289
Blocks:
  Show dependency tree
 
Reported: 2011-07-05 06:04 EDT by Martin Oberhuber CLA
Modified: 2020-09-04 15:26 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2011-07-05 06:04:23 EDT
Build ID: CDT 8.0 (Indigo)

Doing Help > About : Installed Software with CDT 8.0 installed, shows following feature on top of the list:

  %Bundle-Name Source   
  1.0.0.201106081058   
  org.eclipse.cdt.codan.checkers.ui.source
  %Bundle-Vendor

Since the source bundle is generated, it looks like the problem is in the respective binary bundle. In fact, in the

  org.eclipse.cdt.codan.checkers.ui

it looks like
  - plugin.properties file is missing
  - Bundle-Localization:plugin is missing in the MANIFEST.MF
Comment 1 Vivian Kong CLA 2011-07-05 11:38:30 EDT
Alena, can you please take a look?  Thanks.
Comment 2 Elena Laskavaia CLA 2011-07-05 21:46:18 EDT
It is in 
OSGI-INF/l10n/bundle.properties

not in plugin.properties and it is included.

I don't know if this should be Bundle-Localization, this code is generated
by eclipse, I assume it does not need that.

I don't know how source bundle generated
Comment 3 Elena Laskavaia CLA 2011-07-05 21:47:57 EDT
Although "source bundle" tab looks wrong, I will add bunch of files there maybe it will help
Comment 4 Elena Laskavaia CLA 2011-07-05 22:05:21 EDT
Adding stuff in source did not help - it generates warning that it should be added. I fixed warnings in build.properties regarding OSGI-INF. I still think somewhere is wrong with source build.
Comment 5 Martin Oberhuber CLA 2011-07-06 05:34:25 EDT
Looks like you're right and there's an issue with the source bundle generator... I have filed bug 351289 asking PDE Build for advice.

Maybe the issue will go away when building from git with Tycho, since AFAIK Tycho uses its own mechanism for generating source.

Although it looks like the OSGI-INF way of bundle localization is default since Eclipse 3.5, it doesn't seem to be very widespread yet.
Comment 6 Martin Oberhuber CLA 2011-07-07 10:04:24 EDT
I noticed that some JSDT source bundles have the same problem (e.g.
  org.eclipse.wst.jsdt.debug.rhino
) but usually the problem gets never visible, since source bundles are not shown in Help > About.

I guess I'll need to figure out why this bundle appeared under "Installed Software" for me since that's actually unexpected.