mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restart auto tests after automake only if some files were generated (IDEA-157550)
This commit is contained in:
+4
-1
@@ -54,22 +54,25 @@ public class JavaAutoRunManager extends AbstractAutoTestManager {
|
||||
public void activate() {
|
||||
if (myStatusListener == null) {
|
||||
myStatusListener = new CompilationStatusListener() {
|
||||
private boolean myFoundFilesToMake = false;
|
||||
@Override
|
||||
public void compilationFinished(boolean aborted, int errors, int warnings, CompileContext compileContext) {
|
||||
if (errors == 0) {
|
||||
restartAllAutoTests(0);
|
||||
}
|
||||
myHasErrors = errors == 0;
|
||||
myFoundFilesToMake = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void automakeCompilationFinished(int errors, int warnings, CompileContext compileContext) {
|
||||
if (!myFoundFilesToMake) return;
|
||||
compilationFinished(false, errors, warnings, compileContext);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fileGenerated(String outputRoot, String relativePath) {
|
||||
int a = 1;
|
||||
myFoundFilesToMake = true;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user