Wildcard support in -includeresource

Hi,

we’re using bndtools libraries to share common configurations between various projects.
There is one library to include common Eclipse-related files like

-includeresource.fragment: \
    -Application.e4xmi,\
    -fragment.e4xmi,\
    -fragment_always.e4xmi,\
    -plugin_customization.ini,\
    -plugin.xml,\
    OSGI-INF/=-OSGI-INF,\
    icons/=-icons,\
    css/=-css,\
    schema/=-schema

I’m wondering whether there is a way to use a wildcard for certain file types like *.e4xmi.
I tried this but it didn’t include any files, so maybe you now if/how this would be possible.

All the best,
Michael

Did you look at -donotcopy?

No I haven’t, but from its description it’s rather about excluding patterns than including them. I want to include all files of a certain type as the filename can be ambigous.

The -includeresource instruction contains a filter: directive, this is in the Instruction format. So you should be able to do:

   -includeresource.fragment  = .;filter:=*.e4xmi

This is described in the manual