} else if (compileFlags.isEmpty()) {
compileFlags = COMPILE_ONCE;
}
//Create a repository manager to load the js module we're going to run
final RepositoryManager repoman = getRepositoryManager();
version = checkModuleVersionsOrShowSuggestions(
repoman, modname, version, ModuleQuery.Type.JS,
Versions.JS_BINARY_MAJOR_VERSION, Versions.JS_BINARY_MINOR_VERSION, compileFlags);
if (version == null) {
return;
}
File jsmod = getArtifact(repoman, modname, version, false);
// NB localRepos will contain a set of files pointing to the module repositories
// where all the needed modules can be found
List<File> localRepos = new ArrayList<>();
for (Repository r : repoman.getRepositories()) {
if (!r.getRoot().isRemote()) {
File f = new File(r.getDisplayString());
if (!localRepos.contains(f)) {
localRepos.add(f);
}