Class AbstractJavaLinker
java.lang.Object
build.spin.module.java.AbstractJavaLinker
- All Implemented Interfaces:
build.spin.Task<Path>
- Direct Known Subclasses:
Java25CompilerPlugin.JavaLinker
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface build.spin.Task
build.spin.Task.Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjlink(Path buildPath, DependencyAnalysis analysis) Executejlinkon thisProjectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface build.spin.Task
dependencies, execute
-
Constructor Details
-
AbstractJavaLinker
public AbstractJavaLinker()
-
-
Method Details
-
jlink
Executejlinkon thisProject- Parameters:
buildPath- the build path for theProjectanalysis- theDependencyAnalysiscontaining information for linking- Returns:
- the
Paththe path of thejlinkproduced Java Runtime - Throws:
Exception- should theTaskexecution fail
-