Interface BuildJmodTask

All Superinterfaces:
Task<Path,BuildJmodTask>

public interface BuildJmodTask extends 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 Details

    • mainClass

      BuildJmodTask mainClass(String mainClass)

      Specifies the main class to record in the module-info.class file.

      Parameters:
      mainClass - the main class
      Returns:
      the task
    • resolveMainClass

      BuildJmodTask resolveMainClass(boolean 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 TaskExecutionException inviting you to explicitly select the main class with mainClass(java.lang.String).

      Parameters:
      resolveMainClass - true to automatically resolve the main class, false otherwise
      Returns:
      the task
    • configurationPath

      BuildJmodTask configurationPath(Path 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

      BuildJmodTask legalPath(Path 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

      BuildJmodTask manPath(Path 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

      default BuildRuntimeTask buildRuntime(Consumer<BuildRuntimeTask> configurer)

      Creates and configures a build runtime task.

      Parameters:
      configurer - a configurer
      Returns:
      a configured build runtime task