How to programmatically import update sites in my IDE? [message #528125] |
Mon, 19 April 2010 08:51 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03843 seconds