如何將infocenter部署成Web結構
以一個例子說明:
要求:eclipse版本:3.4或更高版本
1.從www.eclipse.org下載eclipse,並解壓,例如: D:/InfoCenter/eclipse
2.在D:/InfoCenter/eclipse/plugins下面找到這個檔案org.eclipse.help.webapp_3.3.101.M20080805_34x.jar,將它拷貝到一個臨時目錄(D:/temp)中,並解壓.出現這樣一個目錄D:/temp/org.eclipse.help.webapp_3.3.101.M20080805_34x.進入這個目錄:D:/temp/org.eclipse.help.webapp_3.3.101.M20080805_34x/web-archive有兩個目錄help和org.eclipse.help.infocenter-feature
3.你可以將org.eclipse.help.infocenter-feature匯入eclipse工程中,使用File-->import--->existing Project
4.Export org.eclipse.help.infocenter-feature as a deployable feature and set the destination to be web-archive/help/WEB-INF/eclipse in the area where org.eclipse.help.webapp.<version>.jar was unzipped.
5.向D:/temp/org.eclipse.help.webapp_3.3.101.M20080805_34x/web-archive/help/WEB-INF/eclipse/plugins添加一些文檔外掛程式。
6.從http://download.eclipse.org/eclipse/equinox/網站下載org.eclipse.equinox.http.servletbridge_<version>.jar 和 org.eclipse.equinox.servletbridge_<version>.jar兩個檔案。我下載是:eclipse-equinox-3.4.zip,注意此版本要和eclipse版本一致。
7.eclipse-equinox-3.4.zip檔案,在eclipse/plugins/下面找個org.eclipse.equinox.servletbridge_1.0.100.v20080427-0830.jar和org.eclipse.equinox.http.servletbridge_1.0.0.v20080427-0830.jar檔案.解壓org.eclipse.equinox.servletbridge_1.0.100.v20080427-0830.jar檔案,將其中的servletbridge.jar拷貝到.D:/temp/org.eclipse.help.webapp_3.3.101.M20080805_34x/web-archive/help/WEB-INF/lib下面.將org.eclipse.equinox.http.servletbridge_1.0.0.v20080427-0830.jar這個檔案拷貝到D:/temp/org.eclipse.help.webapp_3.3.101.M20080805_34x/web-archive/help/WEB-INF/eclipse/plugins下面
8.此時你可以以help目錄為準建立一個war包,或者直接將help檔案夾拷貝到tomcate下面。啟動tomcate,進入協助系統,查看結果。
注意:
Notes: If you look in the config.ini in the help.war file under directory help/WEB_INF/eclipse/configuration you will notice the
line eclipse.product=org.eclipse.productname. If your product has help system customizations in a product plugin you can
activate these by changing this line to point to your product plugin.
博文來源:http://happay99.blog.hexun.com/24985320_d.html