jlink creates a modular runtime image as specified by JEP 220. The ImageBuilder API is not intended to support changing the modular runtime image produced by jlink. A packaging tool may want to take the modular runtime image, produced by jlink with a selected set of plugins, and package it to platform specific layout while the modular runtime image stays intact. The current jdk.tools.jlink.builder API seems to support generating a custom ExecutableImage implementation. We should examine the use cases whether this should be allowed.
|