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).

Mandy

On 12/21/18 4:23 AM, Severin Gehwolf wrote:
I suspect that
jlink will need a bit of support for integrating platform specific
plugins into the build as tools such as objdump and options such as
--add-gun-debuglink aren't going to make sense everywhere.
Yes. It whould make sense to include this plugin only for Linux and,
perhaps, Solaris. If there was a way to include plugins based on the
build platform this would help.

 From the
examples, I also wonder about unwieldily command lines usages and
whether having a platform specific plugin would make this a bit easier.
Sure. One specific issue I've run into was that there seems to be no
way to specify for a plugin to take >= 0 arguments. Once a plugin
specifies, hasArgument() == true, it seems to require at least one.

Thanks,
Severin


Reply via email to