Class AbstractJavaLinker

java.lang.Object
build.spin.module.java.AbstractJavaLinker
All Implemented Interfaces:
build.spin.Task<Path>
Direct Known Subclasses:
Java25CompilerPlugin.JavaLinker

public abstract class AbstractJavaLinker extends Object implements build.spin.Task<Path>
An abstract Task to perform Java Linking using the Java Platform jlink tool on the compiled and packaged Artifact for a Project.

A ScriptTemplate (generated from ScriptTemplate.jt) generates a unix-based script to execute the linked application.

Since:
Jan-2023
Author:
brian.oliver
  • Constructor Details

    • AbstractJavaLinker

      public AbstractJavaLinker()
  • Method Details

    • jlink

      public Path jlink(Path buildPath, DependencyAnalysis analysis) throws Exception
      Execute jlink on this Project
      Parameters:
      buildPath - the build path for the Project
      analysis - the DependencyAnalysis containing information for linking
      Returns:
      the Path the path of the jlink produced Java Runtime
      Throws:
      Exception - should the Task execution fail