從指令行更新執行中的 InfoCenter
除了在安裝說明系統作為 InfoCenter
中 InfoCenter 與文件所支援的 start 及 shutdown 指令外,InfoCenter 還支援在執行中的 Eclipse
呼叫更新管理程式的一組指令。
您可以安裝、更新、啟用、停用特性,列示已安裝特性或更新站台上的可用特性,或新增延伸站台至執行中的 InfoCenter。
實際上,您不需要關閉並重新啟動 InfoCenter,就可以變更執行中的文件外掛程式集。
依安裝說明系統作為 InfoCenter中的解說,啟動 InfoCenter。如果您執行最小的外掛程式集,在使用 start 指令啟動 InfoCenter 前,請新增 org.eclipse.update.core 外掛程式至外掛程式清單中。
依下列指示啟動 InfoCenter 更新指令,[ ] 代表選用性引數,使用者必須提供斜體字的引數。
在執行所需的更新後,請發出套用指令,套用變更,作為最後一個步驟。
將會在目前階段作業中反映變更。
如果您未呼叫套用指令,則變更會在下次 InfoCenter 啟動時生效。
從遠端網站安裝特性:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command install
-featureId feature_id
-version version
-from remote_site_url
[-to target_site_dir]
範例: java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter -command install -from http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-update-home/optionalSite/ -featureId com.example.root -version 1.0.0
更新現有的特性或所有的特性:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command update
[-featureId feature_id ]
[-version version ]
啟用(配置)指定的特性:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command enable
-featureId feature_id
-version version
[-to target_site_dir]
停用(取消配置)指定的特性:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command disable
-featureId feature_id
-version version
[-to target_site_dir]
解除安裝指定的特性:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command uninstall
-featureId feature_id
-version version
[-to target_site_dir]
在上述所有指定 -to target_site_dir 的指令中,會採用給定目錄的對應配置目標網站。 如果沒有指定,則採用預設的本端產品網站。
如果您只要驗證上述指令的作業是否順利完成(亦即,滿足限制),而不要真的執行它,則請在引數清單中加入 -verifyOnly=true。
搜尋遠端網站,列出所有可用的特性來安裝:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command search
-from remote_site_url
列出已經安裝的特性:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command listFeatures
-from local_site_dir
這些特性如下所示:
Site: site url
Feature: id version enabled (or disabled)
加入具有更多特性的本端網站:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command addSite
-from local_site_dir
移除本端網站:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command removeSite
-to local_site_dir
套用變更:
java -cp plugins/org.eclipse.help.base_3.1.0.jar org.eclipse.help.standalone.Infocenter
-command apply