Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 168365 - Problems with exporting product in presence of linked projects.
Summary: Problems with exporting product in presence of linked projects.
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 206398 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-17 18:42 EST by Benjamin Pasero CLA
Modified: 2018-12-03 09:05 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Pasero CLA 2006-12-17 18:42:10 EST
I find myself closing my imported plugins and fragments before doing a product-export, because otherwise the build does not complete normally. Given Bug 166176 in 3.3, this is really a pain.

Ben
Comment 1 Wassim Melhem CLA 2006-12-18 11:16:05 EST
Ben, I am not sure I understand what you are trying to do nor why it's a problem.

For everything related to self-hosting in PDE, workspace projects take precedence over target plug-in counterparts. 

What is special about this case?  and why are workspace plug-ins not desired?  and how can we tell which workspace plug-ins you want and which you don't?
Comment 2 Benjamin Pasero CLA 2006-12-18 11:42:10 EST
Sorry for not being more descriptive, I was very frustrated yesterday...

I have the following setup:
- Target Platform set to RCP 3.3 M4
- Imported Target Platform Plugins with linked content
- Got my own set of plugins which form a RCP application
- RCP application is based on features with a product configuration file

I was under the impression that this bug was already known to PDE for a while (in fact I have experienced it for a long time but never felt like filing a bug because closing projects worked in 3.2).

So, whenever I do a Product Export from the product config file, the export fails if any of the used plugins exists in the workspace as imported with linked content (I am not sure if this problem is related to the "linked" thing or not).

With failing I mean that all the RCP plugins end up missing the class-files in their JARs. I have no idea why this is happening at all, but as soon as I close the workspace plugins belonging to RCP, everything goes fine.
Comment 3 Benjamin Pasero CLA 2006-12-18 11:44:42 EST
> So, whenever I do a Product Export from the product config file, the export
> fails if any of the used plugins exists in the workspace as imported with
> linked content (I am not sure if this problem is related to the "linked" thing
> or not).

Is to be read as:

So, whenever I do a Product Export from the product config file, the export
fails if any of the plugins are open that have been imported from the target platform as "Project with linked content" (I am not sure if this problem is related to the "linked" thing or not).
Comment 4 Wassim Melhem CLA 2006-12-18 13:36:02 EST
That's what I figured.  PDE/Build has a (known) problem with linked content.  

I think it's time to get this issue resolved. 

PDE/UI will be happy to pass in any information pde/build needs to support this scenario.
Comment 5 Pascal Rapicault CLA 2006-12-19 08:35:42 EST
Andrew, I thought you fixed something to that extent earlier this year? Am I getting confused with something else?
Also when I imported ICU as a linked plug-in and then exported it, I got a strange result: all the files listed in project but not the jar. It made me thinking that we may need PDE UI to tell us where is the actual jar when the plugin is jar'ed.
Comment 6 Andrew Niefer CLA 2006-12-19 10:30:35 EST
We fixed bug 158589 in M3.  It was to do with use incorrectly building the classpath in the case of linked content.  Ben, are you using 3.3M3 or later?
Comment 7 Benjamin Pasero CLA 2006-12-19 12:48:05 EST
I was using M4. But saw this in every milestone of 3.3.

bug 158589 is very interesting for me, because it explains why I see different results using 3.2 (build fails with error message) compared to 3.3 (build runs but linked plugins end up missing their jars as Pascal mentions).
Comment 8 Andrew Niefer CLA 2006-12-19 13:14:54 EST
Ahh, I expect that we need special handling for this case in the generated assembly/packaging scripts.  Such projects would likely be considered binary by pde.build (ie no build.properties file) and are likely just copied straight over.  We probably need to explicitly add copy tasks for the linked content.
Comment 9 Andrew Niefer CLA 2007-09-13 11:46:58 EDT
I think this should be re-investigated and considered in 3.4
Comment 10 Andrew Niefer CLA 2007-10-23 11:29:34 EDT
*** Bug 206398 has been marked as a duplicate of this bug. ***
Comment 11 Stephen McCants CLA 2009-06-05 16:45:03 EDT
This bug is alive a well in 3.5.  I'm seeing it in:

Version: 3.5.0
Build id: I20090430-2300

Could this finally be fixed for 3.5?  It has been hanging around since 3.2 according to this bug report.
Comment 12 Andrew Niefer CLA 2009-06-08 09:07:08 EDT
3.5 is in the final release candidates and is effectively done.
Marking for 3.6 to try and look at the general problem of linked content.
Comment 13 Lars Vogel CLA 2018-12-03 09:05:49 EST
Currently we are not actively enhancing PDE build anymore. Therefore, I close this bug as WONTFIX. 

Please reopen, if you plan to provide a fix.