- All Superinterfaces:
Task<Path,BuildJmodTask>
A task for building a JMOD archive for the project module.
This task depends on ModularizeDependenciesTask.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionCreates a build runtime task.default BuildRuntimeTaskbuildRuntime(Consumer<BuildRuntimeTask> configurer) Creates and configures a build runtime task.configurationPath(Path configurationPath) Specifies the path to user-editable configuration files to copy into the resulting JMOD file.Specifies the path to legal notices to copy into the resulting JMOD file.Specifies the main class to record in themodule-info.classfile.Specifies the path to man pages to copy into the resulting JMOD file.resolveMainClass(boolean resolveMainClass) Specifies whether the main class should be automatically resolved in the project module.Methods inherited from interface io.inverno.tool.buildtools.Task
doOnComplete, execute
-
Method Details
-
mainClass
Specifies the main class to record in the
module-info.classfile.- Parameters:
mainClass- the main class- Returns:
- the task
-
resolveMainClass
Specifies whether the main class should be automatically resolved in the project module.
When the project module defines multiple main classes, the resolution will fail with a
TaskExecutionExceptioninviting you to explicitly select the main class withmainClass(java.lang.String).- Parameters:
resolveMainClass- true to automatically resolve the main class, false otherwise- Returns:
- the task
-
configurationPath
Specifies the path to user-editable configuration files to copy into the resulting JMOD file.
- Parameters:
configurationPath- the path to configuration files- Returns:
- the task
-
legalPath
Specifies the path to legal notices to copy into the resulting JMOD file.
- Parameters:
legalPath- the path to legal notices- Returns:
- the task
-
manPath
Specifies the path to man pages to copy into the resulting JMOD file.
- Parameters:
manPath- the path to man pages- Returns:
- the task
-
buildRuntime
BuildRuntimeTask buildRuntime()Creates a build runtime task.
- Returns:
- an archive task
-
buildRuntime
Creates and configures a build runtime task.
- Parameters:
configurer- a configurer- Returns:
- a configured build runtime task
-