Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Customized Eclipse Installer
Customized Eclipse Installer [message #1801065] Fri, 11 January 2019 19:42 Go to next message
Dongcheng Li is currently offline Dongcheng LiFriend
Messages: 2
Registered: January 2019
Junior Member
Hi,

I am trying to update my customized Eclipse installer by using our mirrored copies of Eclipse update sites.

According to another topic (https://www.eclipse.org/forums/index.php/t/1080649/),
I mirrored http://download.eclipse.org/oomph/products/latest/repository
and http://download.eclipse.org/oomph/updates/latest

Then, i added
-Doomph.installer.update.url=file://......./download.eclipse.org/oomph/products/repository
-Doomph.update.url=file://......./download.eclipse.org/oomph/updates/latest
to the eclipse-inst.ini, and it worked.

My question is, what are the differences between these two repositories? because I found that if I only use 'Doomph.installer.update.url', it also worked. Do I still need to keep 'Doomph.update.url'?

Thank you,
Dongcheng

Re: Customized Eclipse Installer [message #1801192 is a reply to message #1801065] Tue, 15 January 2019 06:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
The product site (installer.update) is for updating the installer itself. This site is checked on a background thread when the installer launches, and if there are new versions of any of the installer's bundles and features at that site, the installer will display status indicating that updates are available.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Customized Eclipse Installer [message #1801215 is a reply to message #1801192] Tue, 15 January 2019 14:05 Go to previous messageGo to next message
Dongcheng Li is currently offline Dongcheng LiFriend
Messages: 2
Registered: January 2019
Junior Member
Hi Ed,

Thanks for replying, your explanation of 'installer.update.url' is very clear. Could you please also talk about the other one 'update.url', what does that site is for?

Thanks,
Dongcheng
Re: Customized Eclipse Installer [message #1801274 is a reply to message #1801215] Wed, 16 January 2019 05:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
For example, in the generated product catalog, org.eclipse.products.setup, there is this task:
<?xml version="1.0" encoding="UTF-8"?>
<setup.p2:P2Task
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0">
  <requirement
      name="org.eclipse.oomph.setup.feature.group"/>
  <repository
      url="${oomph.update.url}"/>
</setup.p2:P2Task>
Also the *.ecore models have annotations like this:
<?xml version="1.0" encoding="UTF-8"?>
<setup.p2:P2Task
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0">
  <requirement
      name="org.eclipse.oomph.setup.feature.group"/>
  <repository
      url="${oomph.update.url}"/>
</setup.p2:P2Task>
These things ensure that an update site for any of Oomph's setup technology is available when creating the installations with the installer, and of course specifies where this update site is located.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Customized Eclipse Installer [message #1801310 is a reply to message #1801274] Wed, 16 January 2019 14:20 Go to previous messageGo to next message
Mario Jauvin is currently offline Mario JauvinFriend
Messages: 94
Registered: October 2015
Member
Hi Ed, thanks for the clarification. When and how are new plugins updated from this update site for any of Oomph's setup technology?

Also, there is an ini task to add the oomph.update.url to the Eclipse installation, does that mean that Eclipse would update something when new plugins appeared in the update site? When would this take place? When eclipse started?
Re: Customized Eclipse Installer [message #1801318 is a reply to message #1801310] Wed, 16 January 2019 16:10 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
It seems one question just begs for the next...

Plugins are updated by when you perform p2 tasks of course. Whether that pulls updates for "Oomph bundles" from "this site" depends on whether there is a p2 task for "this site" with requirements for "Oomph bundles"; the generated product catalog has both such a requirement (the setup feature) and a use of this site variable.

No, what Eclipse itself does depends on what update sites are available in the preferences.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:2018-12 Eclipse Installation Error
Next Topic:Problem getting oomph workspace
Goto Forum:
  


Current Time: Thu Apr 18 04:53:24 GMT 2024

Powered by FUDForum. Page generated in 0.02576 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top