Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350722 - dir shaped bundles in the target don't work
Summary: dir shaped bundles in the target don't work
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks: 350073
  Show dependency tree
 
Reported: 2011-06-29 12:41 EDT by Jeff McAffer CLA
Modified: 2019-09-15 04:13 EDT (History)
1 user (show)

See Also:


Attachments
projects that demonstrate the problem (6.14 KB, application/zip)
2011-06-29 12:41 EDT, Jeff McAffer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff McAffer CLA 2011-06-29 12:41:25 EDT
Created attachment 198842 [details]
projects that demonstrate the problem

Steps:
- import the attached projects into a workspace
- notice that there are no compile errors
- export the folder.feature to /temp/exploded.  This will also export the folder.bundle as well.
- close folder.feature and folder.bundle projects
- notice there is a compile error in folder.test 
- open the test.target file in folder.test.  Modify the lone software site entry to include the newly exported folder.feature.  You may be able to just press Update.
- Set test.target as the current target
- notice that the compile errors still exist.

This should work but does not.  If you look in the <workspace>/.metadata/plugins/org.eclipse.pde.core/bundlepool area you will see that folder.bundle is there as a folder and has all the right content.  The folder.test manifest does not show any errors (so the folder.bundle) appears to have been found and is satisfying the require bundle dependency.  inspection of all the relevant metadata and artifact info shows everything to be in good order. (at least by my eye)

Now work around this problem by 
- delete the folder.bundle dir in the bundle pool and the export destination folder (just to be sure)
- reopen the folder.bundle and folder.feature projects
- edit the folder.bundle manifest to have Bundle-Classpath: .   (that is, '.' on the bundle's classpath)
- re-export and redo the target as above
- notice now that folder.test has NO compile errors.


if you have a p2 repo that contains dir shaped bundles
Comment 1 Curtis Windatt CLA 2011-06-29 14:15:45 EDT
Could be related to bug 350073
Comment 2 Jeff McAffer CLA 2011-06-29 22:55:31 EDT
Yes, that seems like a similar problem.
Comment 3 Curtis Windatt CLA 2011-06-30 13:44:54 EDT
I'll try to find time to investigate this.  Hopefully the solution will fix both this and bug 350722.
Comment 4 Eclipse Genie CLA 2019-09-15 04:13:52 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.