0

I would like to use the filename of a sub-bundle bnd file as value without extension inside the file itself. like here ${filename_without_extension} Is there a opportunity for that?

file: core.bnd

-includeresource: \
    @${filename_without_extension}.jar
Peter Kirschner
  • 927
  • 1
  • 9
  • 17

1 Answers1

1

${thisfile} gives you the file of the current bnd file. You can substitute the '.bnd' extension:

 fname = ${subst;${thisfile};\.bnd$;.jar}
 -includeresource: @${fname}
Peter Kriens
  • 15,196
  • 1
  • 37
  • 55