context.processMessage(new CompilerMessage(compilerName, BuildMessage.Kind.INFO, "Starting Flex compiler:\n" + plainCommand));
final Process process = processBuilder.start();
readInputStreamUntilConnected(process, context, compilerName);
}
private void readInputStreamUntilConnected(final Process process, final CompileContext context, final String compilerName) {
<BUG>SharedThreadPool.getInstance().executeOnPooledThread(new Runnable() {

public void run() {</BUG>
final InputStreamReader reader = FlexCommonUtils.createInputStreamReader(process.getInputStream());
try {

context.processMessage(new CompilerMessage(compilerName, BuildMessage.Kind.INFO, "Starting Flex compiler:\n" + plainCommand));
final Process process = processBuilder.start();
readInputStreamUntilConnected(process, context, compilerName);
}
private void readInputStreamUntilConnected(final Process process, final CompileContext context, final String compilerName) {
SharedThreadPool.getInstance().executeOnPooledThread(() -> {
final InputStreamReader reader = FlexCommonUtils.createInputStreamReader(process.getInputStream());
try {
