external build: ignore irrelevant messages in stderr of javac server (e.g. warnings from log4j)

This commit is contained in:
nik
2014-03-04 13:41:19 +04:00
parent a4874522e3
commit 2691cb0145
@@ -155,17 +155,15 @@ public class JavacServerBootstrap {
public void onTextAvailable(ProcessEvent event, Key outputType) {
if (outputType == ProcessOutputTypes.STDERR) {
try {
final String text = event.getText();
if (text != null) {
if (text.contains(JavacServer.SERVER_SUCCESS_START_MESSAGE) || text.contains(JavacServer.SERVER_ERROR_START_MESSAGE)) {
processHandler.removeProcessListener(this);
serverStartMessage.set(text);
}
final String text = event.getText();
if (text != null && (text.contains(JavacServer.SERVER_SUCCESS_START_MESSAGE) || text.contains(JavacServer.SERVER_ERROR_START_MESSAGE))) {
try {
processHandler.removeProcessListener(this);
serverStartMessage.set(text);
}
finally {
semaphore.up();
}
}
finally {
semaphore.up();
}
}
}