Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to programmatically import update sites in my IDE?
How to programmatically import update sites in my IDE? [message #528125] Mon, 19 April 2010 12:51
Shawn is currently offline Shawn
Messages: 5
Registered: July 2009
Junior Member
We have a need of programmtically import update sites into developers' IDEs.

We looked into the following link that can programmtically import Eclipse
IDE Preferences, but this approach doesn't cover the importing of the update
sites.
http://www-01.ibm.com/support/docview.wss?uid=swg21273017

We found another approach which seems not be reliable (please see below).

Please advise if there's a way so that we can programmtically import update
sites into an IDE instance. Thank you.


--------------
Modify the following two files,

C:\eclipse3.5\p2\org.eclipse.equinox.p2.engine\profileRegist ry\SDKProfile.profile\.data\.settings\org.eclipse.equinox.p2 .metadata.repository.prefs

C:\eclipse3.5\p2\org.eclipse.equinox.p2.engine\profileRegist ry\SDKProfile.profile\.data\.settings\org.eclipse.equinox.p2 .artifact.repository.prefs

Adding the following lines would make a new update site available the next
time an Eclipse instance is started.

repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/isSystem=false
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/suffix=artifacts.xml
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/enabled=true
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/version=1.0.0
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/description=
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/uri= http\://dtw-svngateway.prodti.com/CommonBundleDepot/Framewor ks/Java/platform/Update/v20080821/com.frameworks.all.feature .updatesite/
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/nickname=abcShawnabcdef2
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/provider=
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/type=org.eclipse.equinox.p2.artifac t.repository.simpleRepository
repositories/http\:__dtw-svngateway.prodti.com_CommonBundleD epot_Frameworks_Java_platform_Update_v20080821_com.framework s.all.feature.updatesite/name=Company
Previous Topic:ERROR in org.eclipse.ui.examples.presentation.git
Next Topic:Looking for a SWT Calendar Widget
Goto Forum:
  


Current Time: Thu Oct 23 15:49:25 GMT 2014

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

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