code: public static void populateModuleSpecWithCompilationRoot(ModuleSpec.Builder moduleSpecBuilder, Path compilationRoot) {
          Objects.requireNonNull(moduleSpecBuilder, "moduleSpecBuilder");
          Objects.requireNonNull(compilationRoot, "resourceRoot");
          ResourceLoader resourceLoader = ResourceLoaders.createFileResourceLoader(compilationRoot.toString(), compilationRoot.toFile());
          moduleSpecBuilder.addResourceRoot(ResourceLoaderSpec.createResourceLoaderSpec(resourceLoader));
      }
docs: Populates a builder with a {@link ResourceLoaderSpec} to a filesystem resource root.
  {@link ScriptArchive}
  @param moduleSpecBuilder builder to populate
  @param compilationRoot a path to the compilation resource root directory