[Proposal] jlink plugin which replaces dynamic shared libraries

Severin Gehwolf sgehwolf at redhat.com
Wed Jan 2 09:24:22 UTC 2019


On Mon, 2018-12-31 at 07:33 +0000, Alan Bateman wrote:
> 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.

Thanks, Mandy and Alan for the input. I'll have a look and get back to
you.

Cheers,
Severin



More information about the jigsaw-dev mailing list