public abstract void addModules (Iterable<String> moduleNames)

Adds root modules to be taken into account during module resolution. Invalid module names may cause either IllegalArgumentException to be thrown, or diagnostics to be reported when the task is started.

Parameters:
moduleNames    the names of the root modules

Exceptions:
IllegalArgumentException    may be thrown for some invalid module names
IllegalStateException    if the task has started

Since:  9