use of org.gradle.integtests.fixtures.daemon.DaemonLogsAnalyzer in project gradle by gradle.
the class AbstractGradleExecuter method cleanupIsolatedDaemons.
private void cleanupIsolatedDaemons() {
List<DaemonLogsAnalyzer> analyzers = new ArrayList<>();
List<GradleVersion> versions = (gradleVersionOverride != null) ? ImmutableList.of(gradleVersion, gradleVersionOverride) : ImmutableList.of(gradleVersion);
for (File dir : isolatedDaemonBaseDirs) {
for (GradleVersion version : versions) {
try {
DaemonLogsAnalyzer analyzer = new DaemonLogsAnalyzer(dir, version.getVersion());
analyzers.add(analyzer);
analyzer.killAll();
} catch (Exception e) {
getLogger().warn("Problem killing isolated daemons of Gradle version " + version + " in " + dir, e);
}
}
}
if (checkDaemonCrash) {
analyzers.forEach(DaemonLogsAnalyzer::assertNoCrashedDaemon);
}
}
Aggregations