Class JLinkExecutor


  • class JLinkExecutor
    extends AbstractJLinkToolchainExecutor
    JDK9+ executor for jlink.

    This implementation uses the JDK9+ Toolprovider SPI to find and execute jlink. This way, no fork needs to be created.

    • Field Detail

      • toolProvider

        private final java.util.spi.ToolProvider toolProvider
    • Constructor Detail

      • JLinkExecutor

        JLinkExecutor​(org.apache.maven.toolchain.Toolchain toolchain,
                      org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • getJLinkExecutable

        protected final java.util.spi.ToolProvider getJLinkExecutable()
      • executeJlink

        public int executeJlink​(java.util.List<java.lang.String> jlinkArgs)
                         throws org.apache.maven.plugin.MojoExecutionException
        Description copied from class: AbstractJLinkToolchainExecutor
        Execute JLink via toolchain.
        Overrides:
        executeJlink in class AbstractJLinkToolchainExecutor
        Returns:
        the exit code (0 on success)
        Throws:
        org.apache.maven.plugin.MojoExecutionException