package com.github.sormuras.bach.project;

import com.github.sormuras.bach.Project;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;

/**
 * A space for main modules.
 *
 * @param modules the list of modules to compile
 * @param moduleSourcePaths the list of module source paths
 * @param release the Java version (release feature number) to compile for
 * @param tweaks the additional arguments to be passed on a per-tool basis
 */
public record MainSpace(
    List<String> modules,
    List<String> moduleSourcePaths,
    int release,
    Map<String, List<String>> tweaks)
    implements Space {

  @Override
  public String name() {
    return "";
  }

  @Override
  public Path classes(Project project) {
    return project.base().classes("", release);
  }
}

@@ -776,11 +776,351 @@
 se);%0A  %7D
+%0A%0A  /**%0A   * @param project the project providing a workspace directory%0A   * @param entry the path (directory or regular file) to resolve%0A   * @return a path within the given project's documentation workspace%0A   */%0A  public Path documentation(Project project, String entry) %7B%0A    return project.base().workspace(%22documentation%22, entry);%0A  %7D
 %0A%7D%0A

Extend main space with documentation path accessor