On 21/12/2018 18:21, Mandy Chung wrote:
I also like this, stripping the native debug symbols, as a jlink plugin.

Currently jlink does not support platform-specific plugin.   The Plugin API will need to be extended to specific the supported platforms, for example Plugin::isSupported and default to return true.   jlink will need to filter the plugins when it finds the plugin providers.   You can update PluginRepository to do the filtering and see if that covers
all cases (I suspect so).
It might be simpler to move the plugin to src/jdk.jlink/linux/classes and create a module-info.java.extra to augment the module-info.java file in the build. If that works then it would reduce the build work to augmenting plugin.properties at build time with platform specific resources.

-Alan

Reply via email to