Package org.moditect.commands
Class CreateRuntimeImage
java.lang.Object
org.moditect.commands.CreateRuntimeImage
Creates a modular runtime image for the given modules and module path, via jlink.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateRuntimeImage
(Set<Path> modulePath, List<String> modules, JarInclusionPolicy jarInclusionPolicy, Set<Path> dependencies, Path projectJar, String launcherName, String launcherModule, Path outputDirectory, Integer compression, boolean stripDebug, boolean ignoreSigningInformation, List<String> excludeResourcesPatterns, Log log, boolean noHeaderFiles, boolean noManPages, boolean bindServices) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
copyAppJar
(Path jarDirectory) private void
copyDependencyJars
(Path jarDirectory) private void
copyJars()
private void
getModules
(List<String> modules) void
run()
private void
runJlink()
-
Field Details
-
DEPENDENCIES_DIRECTORY
- See Also:
-
modulePath
-
modules
-
jarInclusionPolicy
-
dependencies
-
projectJar
-
outputDirectory
-
ignoreSigningInformation
private boolean ignoreSigningInformation -
launcher
-
log
-
compression
-
stripDebug
private final boolean stripDebug -
noHeaderFiles
private final boolean noHeaderFiles -
noManPages
private final boolean noManPages -
excludeResourcesPatterns
-
bindServices
private final boolean bindServices
-
-
Constructor Details
-
CreateRuntimeImage
public CreateRuntimeImage(Set<Path> modulePath, List<String> modules, JarInclusionPolicy jarInclusionPolicy, Set<Path> dependencies, Path projectJar, String launcherName, String launcherModule, Path outputDirectory, Integer compression, boolean stripDebug, boolean ignoreSigningInformation, List<String> excludeResourcesPatterns, Log log, boolean noHeaderFiles, boolean noManPages, boolean bindServices)
-
-
Method Details
-
getModules
-
run
- Throws:
IOException
-
deleteImageFolder
- Throws:
IOException
-
copyJars
- Throws:
IOException
-
copyAppJar
- Throws:
IOException
-
copyDependencyJars
- Throws:
IOException
-
runJlink
- Throws:
AssertionError
-