【问题标题】:How to include xml files in an OSGi bundle with bndtools?如何使用 bndtools 在 OSGi 包中包含 xml 文件?
【发布时间】:2014-10-02 23:55:55
【问题描述】:

如何在不使用 maven 的情况下使用 bndtools 在 OSGi 包中包含 xml 文件?

【问题讨论】:

    标签: osgi bndtools


    【解决方案1】:

    您可以使用 -includeresource 或 Include-Resource 指令,此处解释:

    -includeresource 是首选。一个简单的例子:

    -includeresource: static=static
    

    将项目的“static”文件夹中的资源包含到“static”文件夹中的bundle中。

    【讨论】:

      猜你喜欢
      • 2015-11-25
      • 2023-04-03
      • 1970-01-01
      • 2018-02-17
      • 1970-01-01
      • 2012-10-04
      • 1970-01-01
      • 2023-04-07
      • 1970-01-01
      相关资源
      最近更新 更多