mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java sm runner: ensure temp files are deleted after exist
This commit is contained in:
@@ -111,6 +111,8 @@ public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfig
|
||||
!ResetConfigurationModuleAdapter.tryWithAnotherModule(getConfiguration(), testConsoleProperties.isDebug())) {
|
||||
TestsUIUtil.notifyByBalloon(testConsoleProperties.getProject(), viewer.hasTestSuites(), viewer.getRoot(), testConsoleProperties, null);
|
||||
}
|
||||
|
||||
deleteTempFiles();
|
||||
}
|
||||
};
|
||||
SwingUtilities.invokeLater(runnable);
|
||||
@@ -214,5 +216,10 @@ public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfig
|
||||
}
|
||||
}
|
||||
|
||||
protected void deleteTempFiles() {
|
||||
if (myTempFile != null) {
|
||||
FileUtil.delete(myTempFile);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user