【问题标题】:Is there a way to reference bnd filename from a macro inside?有没有办法从内部的宏中引用 bnd 文件名?
【发布时间】:2016-02-14 21:23:39
【问题描述】:

我想使用子捆绑 bnd 文件的文件名作为文件本身内部没有扩展名的值。像这里 ${filename_without_extension} 有机会吗?

文件:core.bnd

-includeresource: \
    @${filename_without_extension}.jar

【问题讨论】:

    标签: osgi bnd bndtools


    【解决方案1】:

    ${thisfile} 为您提供当前 bnd 文件的文件。您可以替换“.bnd”扩展名:

     fname = ${subst;${thisfile};\.bnd$;.jar}
     -includeresource: @${fname}
    

    【讨论】:

      猜你喜欢
      • 2020-11-30
      • 1970-01-01
      • 2012-04-29
      • 1970-01-01
      • 2016-06-02
      • 1970-01-01
      • 2020-12-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多