Class JLinkResolver.Result

java.lang.Object
org.tentackle.maven.plugin.jlink.JLinkResolver.Result
Enclosing class:
JLinkResolver

public class JLinkResolver.Result extends Object
Holds the resolver results.
  • Constructor Details

    • Result

      public Result()
  • Method Details

    • getImagePathPrefix

      public String getImagePathPrefix()
      Gets the prefix to the runtime image path.
      Returns:
      the path, empty if jlink image, else path to runtime image
    • getJlinkModules

      public List<ModularArtifact> getJlinkModules()
      Gets the modules to be passed to jlink.
      Returns:
      the modules
    • getModulePath

      public List<ModularArtifact> getModulePath()
      Gets the modules to add to the module path explicitly.
      Returns:
      the modules not passed to jlink
    • getClassPath

      public List<org.apache.maven.artifact.Artifact> getClassPath()
      Gets the artifacts to add to the class path explicitly.
      Returns:
      the class path
    • isModular

      public boolean isModular()
      Returns whether this is a modular application.
      Returns:
      true if modular
      See Also:
    • isPlainModular

      public boolean isPlainModular()
      Returns whether this is a plain modular application.
      Plain modular means that all requirements are met by real modules. If not plain, the jlink tool is used to build a runtime image only and the application modules are placed on the module-path explicitly.
      Returns:
      true if plain modular, else mixed modular or classpath application
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addToClasspath

      public void addToClasspath(String element)
      Adds additional elements to the classpath.
      Such as the conf directory.
      Parameters:
      element - the classpath element to add
    • getExtraClassPathElements

      public List<String> getExtraClassPathElements()
      Gets the additional elements added to the classpath.
      Returns:
      the extra classpath elements
    • generateJlinkModulePath

      public void generateJlinkModulePath(org.tentackle.common.ToolRunner jlinkRunner)
      Generates the module-path option to be passed to jlink.
      Parameters:
      jlinkRunner - the jlink tool runner
    • generateJlinkModules

      public void generateJlinkModules(org.tentackle.common.ToolRunner jlinkRunner)
      Generates the module names option passed to jlink.
      Parameters:
      jlinkRunner - the jlink tool runner
    • isModulePathRequired

      public boolean isModulePathRequired()
      Returns whether the module path is not empty.
      Returns:
      true if module-path must be configured
    • generateModulePath

      public String generateModulePath()
      Generates the module path option to be passed to bin/java.
      Returns:
      the option, empty if no extra module path
    • getModuleArtifact

      public ModularArtifact getModuleArtifact(String moduleName)
      Gets a modular artifact by its name.
      Parameters:
      moduleName - the module name
      Returns:
      the artifact, null if no such artifact
    • isClassPathRequired

      public boolean isClassPathRequired()
      Returns whether the class path is not empty.
      Returns:
      true if classpath must be configured
    • generateClassPath

      public String generateClassPath()
      Generates the class path option to be passed to bin/java.
      Returns:
      the option, empty if no extra class path