有没有办法从里面的宏引用 bnd 文件名?

Is there a way to reference bnd filename from a macro inside?

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

文件:core.bnd

-includeresource: \
    @${filename_without_extension}.jar

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

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