Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 69008 - allow mirrors to be used for eclipse feature updates through the update tool.
Summary: allow mirrors to be used for eclipse feature updates through the update tool.
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Dorian Birsan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 10:03 EDT by Bill Brown CLA
Modified: 2005-06-27 15:44 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Brown CLA 2004-06-30 10:03:37 EDT
Greetings:

I am not sure if mirrors can be used for updates to new features from eclipse. I
find this feature to be useful for other software like Cygwin because it can
signifigantly speed up the update process. I ran into this issue this morning
when trying to udate the new 3.0 release and it was really slow.
Comment 1 Dorian Birsan CLA 2004-06-30 11:34:05 EDT
This is not 100% of what you asked, but it should solve the problem, as long 
as you know what the mirror sites are or if you mirror it locally for all the 
users in your organization.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-
home/doc/working/update-policy.html

For mirroring, you can also use eclipse to mirror an update site (check the 
end of the document):

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-
home/doc/working/documentation/standalone_update.html
Comment 2 Dorian Birsan CLA 2004-10-20 22:02:57 EDT
I've added support for update site mirrors as follows:
- an update site can (optionally) list other update site mirrors by adding 
<mirror> element at the end of the site.xml file.

  site.xml
  <site>
      <feature ..../>
      .....
      <category-def .../>
      ...
      <mirror url="http://server/update/site/" label="Label the user will 
see"/>
      <mirror ..../>

      
- when a user is looking for updates or new features using the install wizard, 
for each site that is being searched, the user will be prompted to 
(optionally) pick a mirror site. If a mirror site is picked, then that site is 
being looked up for features.

Sonia, I cc:ed you to see whether the eclipse update site can be mirrored, 
just like the download pages.
Comment 3 Dorian Birsan CLA 2004-12-01 15:41:15 EST
re-openning the bug:

Because the site.xml parser does not accept new elements, eclipse 3.0 or older 
clients, cannot successfully parse a 3.1 site.xml. As such, updating to 3.1 
when a mirror is present in site.xml is not possible.

The new implementation will provide the following fix:
No longer accept the <mirror> elements as part of site.xml.
Instead, the <site> element will have an optional new attribute mirrorsURL
that will point to another xml file containing mirror definitions.
The old definition of <mirror> elements will be supported inside this new file.

Here is an example:

site.xml
  <site mirrorsURL="http://eclipse.org/mirrors.xml">
      <feature ..../>
      .....
      <category-def .../>
      ....
  </site>

mirrors.xml
   <mirrors>
       <mirror url="http://server/update/site/" label="Label for site" />
       <mirror ..../>
   </mirrors>
Comment 4 Dorian Birsan CLA 2004-12-01 15:43:12 EST
fixed as per my latest comment.
Comment 5 Dorian Birsan CLA 2004-12-07 18:03:29 EST
I've also added support for relative mirror sites url, as in

site.xml
  <site mirrorsURL="mirrors.xml">
      <feature ..../>
      ....
  </site>

in which case mirrors.xml is picked up from the same location as site.xml.
This code will go into next week's integration build (m4)
Comment 6 Mike Wilson CLA 2005-06-27 14:25:31 EDT
Does the information in this bug show up in the update help book, now? If not it should be added.
Comment 7 Dorian Birsan CLA 2005-06-27 15:44:31 EDT
This has been documented in the isv book but what's new is in the user's 
guide. 

org.eclipse.platform.doc.isv/reference/misc/update_sitemap.html