1. 设置:eclipse.ignoreApp=true
Eclipse Equinox的主配置文件是一个文本文件,需要放在configuration目录下以config.ini命名;在该配置文件中
最后添加上eclipse.ignoreApp=true可避免Equinox在启动时区尝试启动Eclipse’s flagship platform. 例如:
osgi.bundles=logging/com.springsource.ch.qos.logback.core-0.9.9.jar@start, \
logging/com.springsource.ch.qos.logback.classic-0.9.9.jar, \
logging/com.springsource.slf4j.api-1.5.0.jar@start, \
logging/com.springsource.slf4j.org.apache.commons.logging-1.5.0.jar@start, \
logging/com.springsource.slf4j.org.apache.log4j-1.5.0.jar@start, \
......
springcore/spring-osgi-io-1.2.0-m1.jar@start, \
springcore/spring-osgi-core-1.2.0-m1.jar@start, \
springcore/spring-osgi-extender-1.2.0-m1.jar@start, \
springcore/spring-osgi-web-1.2.0-m1.jar@start, \
springcore/spring-osgi-web-extender-1.2.0-m1.jar@start, \
helloworld-model.jar@start, \
helloworld-service.jar@start, \
helloworld-servicedao.jar@start, \
helloworld-web.war@start
eclipse.ignoreApp=true
2. 设置:"\"
在上述的配置文件中,处理最后一行外,其他的需启动的Bundle声名默认都有一个"\",这个"\"是强制的,否则
Equonox在启动的过程中不会加载这些文件。