Lines 2700-2725
Link Here
|
2700 |
} |
2700 |
} |
2701 |
Main.this.logger.startLoggingSource(compilationResult); |
2701 |
Main.this.logger.startLoggingSource(compilationResult); |
2702 |
if (compilationResult.hasProblems() || compilationResult.hasTasks()) { |
2702 |
if (compilationResult.hasProblems() || compilationResult.hasTasks()) { |
2703 |
int localErrorCount = Main.this.logger.logProblems(compilationResult.getAllProblems(), compilationResult.compilationUnit.getContents(), Main.this); |
2703 |
Main.this.logger.logProblems(compilationResult.getAllProblems(), compilationResult.compilationUnit.getContents(), Main.this); |
2704 |
// exit? |
|
|
2705 |
if (Main.this.systemExitWhenFinished && !Main.this.proceedOnError && (localErrorCount > 0)) { |
2706 |
// ensure dumping problems for enqueued units as well, since may contain primary errors (123476) |
2707 |
CompilationUnitDeclaration[] queuedUnits = Main.this.batchCompiler.unitsToProcess; |
2708 |
for (int i = 0, length = Main.this.batchCompiler.totalUnits; i < length; i++) { |
2709 |
CompilationUnitDeclaration queuedUnit = queuedUnits[i]; |
2710 |
if (queuedUnit == null) continue; |
2711 |
CompilationResult result = queuedUnit.compilationResult; |
2712 |
if (result.hasProblems() && !result.hasBeenAccepted) { |
2713 |
Main.this.logger.logProblems(result.getAllProblems(), result.compilationUnit.getContents(), Main.this); |
2714 |
} |
2715 |
} |
2716 |
Main.this.logger.endLoggingSource(); |
2717 |
Main.this.logger.endLoggingSources(); |
2718 |
Main.this.logger.printStats(); |
2719 |
Main.this.logger.flush(); |
2720 |
Main.this.logger.close(); |
2721 |
System.exit(-1); |
2722 |
} |
2723 |
} |
2704 |
} |
2724 |
outputClassFiles(compilationResult); |
2705 |
outputClassFiles(compilationResult); |
2725 |
Main.this.logger.endLoggingSource(); |
2706 |
Main.this.logger.endLoggingSource(); |