kapt: Light class stub producer in compiler
This commit is contained in:
@@ -152,6 +152,9 @@ public abstract class CLICompiler<A extends CommonCompilerArguments> {
|
||||
Disposer.dispose(rootDisposable);
|
||||
}
|
||||
}
|
||||
catch (CompilationInterruptedException e) {
|
||||
return e.exitCode;
|
||||
}
|
||||
catch (Throwable t) {
|
||||
groupingCollector.report(CompilerMessageSeverity.EXCEPTION, OutputMessageUtil.renderException(t),
|
||||
CompilerMessageLocation.NO_LOCATION);
|
||||
@@ -201,4 +204,12 @@ public abstract class CLICompiler<A extends CommonCompilerArguments> {
|
||||
return INTERNAL_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
public static class CompilationInterruptedException extends RuntimeException {
|
||||
final ExitCode exitCode;
|
||||
|
||||
public CompilationInterruptedException(ExitCode exitCode) {
|
||||
this.exitCode = exitCode;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user