Bug 98647

Summary: Launching Eclipse Application fails due to invalid platform.xml
Product: [Eclipse Project] PDE Reporter: Markus Schorn <mschorn.eclipse>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Schorn CLA 2005-06-07 06:22:25 EDT
I use an installation of eclipse31-rc1 (c:/programs/eclipse31/eclipse)
a workspace containing a self written plugin (c:/dev/views/wb/vob/plugins/plg)
another installation of eclipse (c:/dev/views/wb/eclipse) which I use as my 
TargetPlatform.

When launching an eclipse application with my plugin, PDE creates the file
'platform.xml' in the 
folder '.metadata/org.eclipse.pde.core/launch/org.eclipse.update'. In there is 
the specification for the workspace plugins:
<site enabled="true" list="plugins/plg/" policy="USER-INCLUDE" 
updateable="true" url="file:../../../dev/views/wb/vob/">
</site>

Note that the url of the site is given relative to the site-url of eclipse 
hosting the launch. The eclipse application that is started tries to resolve 
this URL and makes it absolute by means of its site-url (which is the one of 
the target-platform), resulting in:
'c:/dev/dev/views/wb/vob/'

This directory does not exist, so my plugin does not get loaded :-(.
Comment 1 Wassim Melhem CLA 2005-06-07 06:35:49 EDT

*** This bug has been marked as a duplicate of 97148 ***