private static Script toScript()

in mps-driver/src/main/java/org/jetbrains/mps/maven/driver/Driver.java [79:95]


    private static Script toScript(Path solutionFile, GeneratorInput generatorInput) {
        Script script = new Script();
        script.updateLogLevel(Level.TRACE);

        // Leave compilation to Maven. We can do it since we generate one module at a time, and it lets us (and the
        // plugin user) control the compilation process.
        //
        // Also, enabling the Java compilation currently makes the build of hello-world sample fail, reasons not yet
        // investigated.
        new JavaCompilerProperties(script).setSkipCompilation(true);

        addLibraryJarsToScript(script, generatorInput.libraryJars);
        addJavaStubSolutionsToScript(script, generatorInput.classStubsJars);

        script.addChunk(Collections.singletonList(solutionFile.toAbsolutePath().toString()), false);
        return script;
    }