Interface WithModuleOptionsCall<T>

Type Parameters:
T - The type of the tool
All Superinterfaces:
Call<T>
All Known Subinterfaces:
WithModuleSourceOptionsCall<T>
All Known Implementing Classes:
Javac, Javadoc

public interface WithModuleOptionsCall<T>
extends Call<T>
A tool call with a list of module-related options.
  • Method Details

    • withModule

      default T withModule​(String module)
      Specify the initial module(s).
      Parameters:
      module - The initial module(s)
      Returns:
      A new tool call instance with --module <module>(,<module>)* appended
    • withResolvingAdditionalModules

      default T withResolvingAdditionalModules​(Iterable<String> modules)
      Root modules to resolve in addition to the initial modules.

      Or all modules on the module path if "ALL-MODULE-PATH" is given.

      Parameters:
      modules - The root modules to resolve in addition to the initial modules
      Returns:
      A new tool call instance
    • withModulePath

      default T withModulePath​(String path)
      Specify where to find application modules.
      Parameters:
      path - The path where to find application modules
      Returns:
      A new tool call instance
    • withPatchModule

      default T withPatchModule​(String module, String path)
      Override or augment a module with classes and resources in JAR files or directories.
      Parameters:
      module - The name of the module to override or augment
      path - The path where to find more assets for the given module
      Returns:
      A new tool call instance