Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Define update sites in config.ini file

I'm creating a product based on Eclipse 3.6.2 for our project. The idea is to create an Eclipse installation that has all the plugins we require and all configuration are setup as we need them for the project.

As part of that, I want to make sure our update sites are included, but how can I do that?

If I choose to export preferences update sites are not included. I can export update sites from the preference page and get an XML file with them, but how can I include it in my config.ini file? Or is there some other way?

Goal is, when the user runs the custom Eclipse product our update sites will be in the list of sites. Ideally, the only ones in the list.

like image 682
Fredrik Avatar asked Oct 04 '12 14:10

Fredrik


1 Answers

You can add a p2.inf file that instructs particular update sites when things are installed:

instructions.configure=\
addRepository(type:0,location:http${#58}//www.eclipse.org/equinox/p2/testing/updateSite);\  addRepository(type:1,location:http${#58}//www.eclipse.org/equinox/p2/testing/updateSite);

This would add www.eclipse.org/equinox/p2/testing/updateSite.

This file (p2.inf) needs to go in the same directory as your MANIFEST.MF file. You can read more about this here.

like image 118
irbull Avatar answered Sep 20 '22 23:09

irbull