Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324630 - [patch] Config.ini & P2-based target: osgi.install.area points to .bundle_pool
Summary: [patch] Config.ini & P2-based target: osgi.install.area points to .bundle_pool
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 04:57 EDT by Tobias Jenkner CLA
Modified: 2019-10-08 14:27 EDT (History)
1 user (show)

See Also:


Attachments
proposed patch (1.42 KB, patch)
2011-09-28 03:11 EDT, Tobias Jenkner CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Jenkner CLA 2010-09-07 04:57:36 EDT
Build Identifier: 

When using a P2-based target the osgi.install.area property in generated config.ini files points to "[WORKSPACE]\.metadata\.plugins\org.eclipse.pde.core\.bundle_pool". 
Shouldn't it point to "{WORKSPACE]\.metadata\.plugins\org.eclipse.pde.core\.install_folders\[TIMESTAMP]" instead? 
Since my application depends on rootfiles to be in the osgi.install.area I currently have to copy them manually to ".bundle_pool" after setting the target in PDE. 

Reproducible: Always
Comment 1 Tobias Jenkner CLA 2011-09-28 03:11:14 EDT
Created attachment 204145 [details]
proposed patch
Comment 2 Curtis Windatt CLA 2012-03-01 16:57:42 EST
The synchronizer downloads the bundles to the bundle pool, changing the location the container returns would break the LoadTargetDefinitionJob.  In addition to using the bundle pool for that target's bundles, we reuse the bundle pool for other target definitions to reduce the amount of disk space and downloading.  There is special processing in the LoadTargetDefinitionJob to handle this case.

There might be a fix for your issue, but it will need more changes then your patch proposes.
Comment 3 Tobias Jenkner CLA 2012-03-23 09:49:58 EDT
I am using this patch in my eclipse IDE for several months now and it seems to work for me. 
@Curtis: Can you give me a hint what you think this patch will break?
Comment 4 Curtis Windatt CLA 2012-03-23 11:25:02 EDT
(In reply to comment #3)
> I am using this patch in my eclipse IDE for several months now and it seems to
> work for me. 
> @Curtis: Can you give me a hint what you think this patch will break?

Currently all target definitions share the same bundle pool locations. This is so we don't repeatedly download the same files.  In addition the load target definition job does some special checks if we are getting bundles from the bundle pool location.  These checks were added to deal with some incorrect enablement of bundles that no longer belong in the target (such as when you update a p2 repo location).  I think there was also a problem with duplication, but that may have been fixed with Jeff's work on the synchronizer.
Comment 5 Eclipse Genie CLA 2019-10-08 14:27:29 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.