Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 107904 - Unable to locate feature data when installing from an update site
Summary: Unable to locate feature data when installing from an update site
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Update-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 14:37 EDT by John Bossom CLA
Modified: 2009-06-18 17:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Bossom CLA 2005-08-24 14:37:18 EDT
The feature manifest permits you to specify relative paths to "nonPlugin Data".
and specifies "Select non-plug-in data archives that should be packaged in 
this feature". For instance, if you specify "mydata.zip",
non-plugin data is subsequently packaged up into the feature jar file along 
side the "feature.xml" file.
However, if you then include this feature as part of an update site and 
generate the site, you will not be able to install the feature from that site.

Reason:
The non-plugin data is bundled up inside the feature JAR file, whereas the
update code attempts to download it from the update site, independent of
the feature JAR, as

        <protocol>://blah/mysite/features/myfeature_1.0.0/mydata.zip

in the update site.

There is a discrepancy here. You cannot generate an update site that works.
To satisfy the update code, you have to manually unpack the feature jar file
on the site. This also implies that the nonplugin data is downloaded twice...
(implicitly since it is bundled inside the feature JAR and explicitly from the
 directory)

Either the non-plugin data should be obtained from within the JAR (instead
of explicitly loading it as per the documentation) or it should not be bundled 
in the feature JAR... and the PDE should assist in building a correct update 
site.

Comments?

P.S. I was attempting to leverage the non-plugin data to provide input to my 
own global install handler (via nonPluginDataLoaded)

John.
Comment 1 John Arthorne CLA 2009-06-18 17:04:31 EDT
This is a mass update of Platform Update bugs that have had no activity in three years. Platform Update was replaced in Eclipse 3.4 (2008) by a new provisioning system called Equinox p2. If this bug or enhancement is not already addressed in p2 please enter a new bug report against p2 (RT > Equinox > p2). If you still want to see this bug addressed in the deprecated Platform Update component, please reopen this bug. Patches welcome.