2017-01-30 40 views
0

我已经采取了从http://maksim.sorokin.dk/it/2011/07/19/maven-apache-felix-easy-development-and-debugging-with-eclipse/的例子,我想扩展它添加另一束:不止一个包开始使用Apache菲利克斯config.properties

felix.auto.deploy.action=install,start 
felix.log.level=1 

org.osgi.framework.storage.clean=onFirstInit 

felix.auto.start.1 = \ 
assembly:../test.bundle/target/classes 
assembly:../test2.bundle/target/classes 

但是,只有第一个包开始(加入符合\分隔符也不起作用)。

这并不工作过:

felix.auto.start.2 = \ 
assembly:../test.bundle/target/classes 

所以我最终能够开始只有一个包。不是一个非常OSGi的概念。

我在做什么错在这里?

+1

继[菲利克斯文档】(https://felix.apache.org/documentation/subprojects/apache-felix-framework/apache -felix-framework-configuration-properties.html#launcher-configuration-properties)'felix.auto.start。 '是一个空格分隔的列表。 – SubOptimal

回答

1

\分隔符后添加一个额外的空间写你的配置是这样

felix.auto.deploy.action=install,start 
felix.log.level=1 

org.osgi.framework.storage.clean=onFirstInit 

felix.auto.start.1 = \ 
assembly:../test.bundle/target/classes \ 
assembly:../test2.bundle/target/classes 
相关问题