gpt4 book ai didi

java - 多个 bundle 以 apache felix config.properties 启动

转载 作者:行者123 更新时间:2023-12-01 08:57:36 26 4
gpt4 key购买 nike

我从 http://maksim.sorokin.dk/it/2011/07/19/maven-apache-felix-easy-development-and-debugging-with-eclipse/ 中获取了示例我想扩展它添加另一个包:

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

所以我最终只能启动一个 bundle 。不是一个非常 OSGi 的概念。

我在这里做错了什么?

最佳答案

在\分隔符后添加一个额外的空格,像这样编写你的配置

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

关于java - 多个 bundle 以 apache felix config.properties 启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41940665/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com