Show generated module script in the messages view in the IDE

This commit is contained in:
Andrey Breslav
2012-03-02 15:54:51 +04:00
parent b120fa05ae
commit 3c566286dd
@@ -122,6 +122,8 @@ public class JetCompiler implements TranslatingCompiler {
CharSequence script = generateModuleScript(moduleName, chunk, files, tests, mainOutput, Sets.newHashSet(compileContext.getAllOutputDirectories()));
compileContext.addMessage(STATISTICS, "Generated module script:\n" + script.toString(), "file://" + path(mainOutput), 0, 1);
File scriptFile = new File(path(outputDir), "script.kts");
try {
FileUtil.writeToFile(scriptFile, script.toString());