osgi bundles 启动方法之一
来源:互联网 发布:新业汽修软件图 编辑:程序博客网 时间:2024/06/05 19:11
1.定义 bundles.info 文件内容
格式:
plugin Id,Version,path,startLevel,autoStart 如:
org.eclipse.jdt.annotation,1.0.0.v20120522-1651,plugins/org.eclipse.jdt.annotation_1.0.0.v20120522-1651.jar,4,false
org.eclipse.jetty.servlets,8.1.3.v20120522,plugins/org.eclipse.jetty.servlets_8.1.3.v20120522.jar,4,false
org.eclipse.jetty.util,8.1.3.v20120522,plugins/org.eclipse.jetty.util_8.1.3.v20120522.jar,4,false
2. 在 equinox 目录的configuration\config.ini 中添加
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.300.v20110815-1744.jar@1\:start
equinox.use.ds=true
osgi.bundles.defaultStartLevel=4
osgi.framework=file\:plugins/org.eclipse.osgi_3.8.0.v20120529-1548.jar
osgi.framework.extensions=reference\:file\:javax.transaction_1.1.1.v201105210645.jar
eclipse.p2.data.area=@config.dir/../p2
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.p2.profile=DefaultProfile
3.启动 equinox start.bat
@echo off
:: set path to eclipse folder. If local folder, use '.'; otherwise, use c:\path\to\eclipse
set ECLIPSEHOME=server
:: set ports for HTTP(S) server
set HTTP_PORT=8082
set HTTPS_PORT=8443
:: get path to equinox jar inside ECLIPSEHOME folder
for /f "delims= tokens=1" %%c in ('dir /B /S /OD %ECLIPSEHOME%\plugins\org.eclipse.equinox.launcher_*.jar') do set EQUINOXJAR=%%c
:: start Eclipse w/ java
echo Launching the openHAB runtime...
java -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=%HTTP_PORT% -Djetty.port.ssl=%HTTPS_PORT% -Djetty.home=. -Dlogback.configurationFile=configurations/logback.xml -Dfelix.fileinstall.dir=addons -Djava.library.path=lib -Djava.security.auth.login.config=./etc/login.conf -Dorg.quartz.properties=./etc/quartz.properties -Dequinox.ds.block_timeout=240000 -Dequinox.scr.waitTimeOnBlock=60000 -Djava.awt.headless=true -jar %EQUINOXJAR% %* -console
- osgi bundles 启动方法之一
- OSGI-非OSGI插件工程启动OSGI框架及bundles
- OSGI:osgi.bundles与osgi.bundles.defaultStartLevel
- 你好,OSGi (第一部分): Bundles入门
- osgi多bundle环境启动慢原因之一分析
- OSGi (第一部分): Bundles入门(续,翻译)
- Building with Tycho – part 1 (OSGi bundles)
- Eclipse 4.2 Juno OSGi Bundles Target Platform的最少依赖
- osgi启动过程
- Build and deploy OSGi as Spring bundles using Felix(From IBM developerworks)
- relocation error: /home/eclipse/configuration/org.eclipse.osgi /bundles/193/2/.cp /libswt-pi-gtk-423
- [OSGi] 启动OSGi的Declarative Services
- [OSGi] 启动OSGi的Declarative Services
- window启动FTP服务器方法之一
- OSGI启动级别服务规范
- 【OSGI】从外部启动Equinox
- [OSGI] Eclipse启动/调试Felix
- OSGI ——平台启动
- QT中QWS的含义
- 如何解决mathtype公式拉大word中行间距的问题
- 代码审查:程序员内炼之道
- Linux连接跟踪源码分析
- ImagesUtil 图片处理 缩放图像、切割图像、图像类型转换、彩色转黑白、文字水印、图片水印
- osgi bundles 启动方法之一
- [转载]C#之DataSet类
- maven中跳过单元测试
- 实现分块查找的算法
- 给Android应用开发者的十个建议
- Ubuntu: 常用的APT命令参数
- Creo二次开发--函数(6)--选择对象
- netfilter源码分析(1)- IP报文的接收到hook函数的调用
- Android 实用工具Hierarchy Viewer实战