想做個OSGi支援SERVLET的例子,卻發現org.eclipse.equinox.http.helper
包找不到,終於在一篇文章中找到了如何獲得該包,該包還沒有正式發布,只能從eclipse的CVS裡擷取
文章來源:http://imamraza.wordpress.com/2009/02/06/making-orgeclipseequinoxhttphelperjar-plugin-from-the-eclipse-repository-source-code/
Posted in OSGI
at 5:03 am by imamraza
Follow below steps to make org.eclipse.equinox.http.helper.jar
- You need to checked out source code of this bundle from the eclipse repository (
Server: :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse Module: /equinox-incubator/org.eclipse.equinox.http.helper). Its size is very small around 50.2kb
- Make an empty project of plugin type in eclipse and then put above
org.eclipse.equinox.http.helper/src contents into its src folder of the project. Similarly put
org.eclipse.equinox.http.helper/META-INF/manifest.mf
file into the project Meta-INF folder.
- Right click on the project and click “export”. Then click
Deployable plug-ins and fragments as shown below and then click next.
- In the next screen, check the box against the plugin
“org.eclipse.equinox.http.helper” and provide the location for plugin
jar file, as shown below and then click finish.
- This will create org.eclipse.equinox.http.helper_1.0.0.200901151028.jar
in the plugin folder of the specified location e.g in the above case in
c:/plugin/org.eclipse.equinox.http.helper_1.0.0.200901151028.jar
以下是我的配置,供參考:
使用eclipse的import功能-->CVS,配置
Server:
:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
Module:
equinox-incubator/org.eclipse.equinox.http.helper