Correctly report locations of output files

This commit is contained in:
Andrey Breslav
2013-10-18 18:17:53 +04:00
parent 251c659e91
commit c84e582397
5 changed files with 17 additions and 27 deletions
@@ -116,7 +116,7 @@ public class JetCompiler implements TranslatingCompiler {
if (scriptFile == null) return;
OutputItemsCollectorImpl collector = new OutputItemsCollectorImpl(outputDir) {
OutputItemsCollectorImpl collector = new OutputItemsCollectorImpl() {
@Override
public void add(Collection<File> sourceFiles, File outputFile) {
super.add(sourceFiles, outputFile);
@@ -90,7 +90,7 @@ public final class K2JSCompiler implements TranslatingCompiler {
private static void doCompile(@NotNull final MessageCollector messageCollector, @NotNull OutputSink sink, @NotNull final Module module,
@NotNull final CompilerEnvironment environment) {
OutputItemsCollectorImpl collector = new OutputItemsCollectorImpl(environment.getOutput());
OutputItemsCollectorImpl collector = new OutputItemsCollectorImpl();
outputCompilerMessagesAndHandleExitCode(messageCollector, collector, new Function<PrintStream, Integer>() {
@Override
public Integer fun(PrintStream stream) {