[TIP] The Super Macro

9 views
Skip to first unread message

Peter Kriens

unread,
Dec 9, 2020, 6:35:00 AM12/9/20
to via bndtools-users

Sometimes you want to override a property defined in one of your ancestor property file but still want to use whatever value was defined for that ancestor. Where the ancestor is for example the `build.bnd` file while you're in the `bnd.bnd` project file.

The super macro, ${^<name>} handles this for you. Just prefix the name of the macro you want to access with the caret (^) and add the additional information. For example, you can add a new source folder to the workspace wide defaults:

	src = ${^src},gen-src

Kind regards,

Peter Kriens

Reply all
Reply to author
Forward
0 new messages