我没有发现--strip-native-commands
使用jlink --help
(甚至没有将其列为选项),甚至在docs中也没有.我没有在网上找到任何关于它的文档,但使用jpackage -h
告诉我:
--jlink-options <jlink options>
A space separated list of options to pass to jlink
If not specified, defaults to "--strip-native-commands
--strip-debug --no-man-pages --no-header-files".
This option can be used multiple times.
...
...
If --runtime-image is not specified, jpackage will run jlink to
create the runtime image using options:
--strip-debug, --no-header-files, --no-man-pages, and
--strip-native-commands.
在线上似乎没有关于--strip-native-commands
的任何东西.使用它似乎可以稍微缩短运行时:
34612 ncnotstripped
34568 ncstripped
但我想知道任何潜在的权衡."原生命令"指的是什么?我从运行时中删除了什么以使其更小?