Package org.tentackle.maven.plugin.jlink
Class JlinkResolver.Result
- java.lang.Object
-
- org.tentackle.maven.plugin.jlink.JlinkResolver.Result
-
- Enclosing class:
- JlinkResolver
public static class JlinkResolver.Result extends java.lang.ObjectHolds the resolver results.
-
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToClasspath(java.lang.String element)Sets whether the conf directory should be added to the classpath.java.lang.StringgenerateClassPath()Generates the class path option to be passed to bin/java.voidgenerateJlinkModulePath(org.tentackle.maven.ToolRunner jlinkRunner)Generates the module-path option to be passed to jlink.voidgenerateJlinkModules(org.tentackle.maven.ToolRunner jlinkRunner)Generates the module names option passed to jlink.java.lang.StringgenerateModulePath()Generates the module path option to be passed to bin/java.java.util.List<org.apache.maven.artifact.Artifact>getClassPath()Gets the artifacts to add to the class path explicitly.java.util.List<ModularArtifact>getJlinkModules()Gets the modules to be passed to jlink.java.util.List<ModularArtifact>getModulePath()Gets the modules to add to the module path explicitly.booleanisModular()Returns whether this is a modular application.booleanisPlainModular()Returns whether this is a plain modular application.
Plain modular means that all requirements are met by real modules.java.lang.StringtoString()
-
-
-
Method Detail
-
getJlinkModules
public java.util.List<ModularArtifact> getJlinkModules()
Gets the modules to be passed to jlink.- Returns:
- the modules
-
getModulePath
public java.util.List<ModularArtifact> getModulePath()
Gets the modules to add to the module path explicitly.- Returns:
- the modules not passed to jlink
-
getClassPath
public java.util.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()
-
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:
isModular()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
addToClasspath
public void addToClasspath(java.lang.String element)
Sets whether the conf directory should be added to the classpath.- Parameters:
element- the classpath element to add
-
generateJlinkModulePath
public void generateJlinkModulePath(org.tentackle.maven.ToolRunner jlinkRunner)
Generates the module-path option to be passed to jlink.- Parameters:
jlinkRunner- the jlink tool runner
-
generateJlinkModules
public void generateJlinkModules(org.tentackle.maven.ToolRunner jlinkRunner)
Generates the module names option passed to jlink.- Parameters:
jlinkRunner- the jlink tool runner
-
generateModulePath
public java.lang.String generateModulePath()
Generates the module path option to be passed to bin/java.- Returns:
- the option, empty if no extra module path
-
generateClassPath
public java.lang.String generateClassPath()
Generates the class path option to be passed to bin/java.- Returns:
- the option, empty if no extra class path
-
-