mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[jps-cache] Clear download folder and fix extract cancellation
GitOrigin-RevId: ca4c1d9e6cfd331faa4ff632c87b011286020e37
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6f4b9e4b92
commit
053ff7f9b7
+2
-1
@@ -143,8 +143,9 @@ public class TemporaryCacheServerClient implements JpsServerClient {
|
||||
catch (ProcessCanceledException | IOException e) {
|
||||
//noinspection InstanceofCatchParameter
|
||||
if (e instanceof IOException) LOG.warn("Failed to download JPS compilation outputs", e);
|
||||
if (targetDir.exists()) FileUtil.delete(targetDir);
|
||||
downloadedFiles.forEach(zipFile -> FileUtil.delete(zipFile));
|
||||
return Collections.emptyList();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ class JpsCompilationOutputLoader implements JpsOutputLoader<List<OutputLoadResul
|
||||
extractIndicatorManager.setText(this, "Extracting downloaded results...");
|
||||
List<Future<?>> futureList = ContainerUtil.map(outputLoadResults, loadResult ->
|
||||
myExecutorService.submit(new UnzipOutputTask(result, loadResult, extractIndicatorManager)));
|
||||
for (Future future : futureList) {
|
||||
for (Future<?> future : futureList) {
|
||||
future.get();
|
||||
}
|
||||
extractIndicatorManager.finished(this);
|
||||
|
||||
+1
-3
@@ -65,9 +65,7 @@ public class JpsOutputLoaderManager {
|
||||
// Configure build manager
|
||||
BuildManager buildManager = BuildManager.getInstance();
|
||||
if (!buildManager.isGeneratePortableCachesEnabled()) buildManager.setGeneratePortableCachesEnabled(true);
|
||||
myExecutorService = AppExecutorUtil.createBoundedApplicationPoolExecutor("JpsCacheLoader Pool",
|
||||
INSTANCE,
|
||||
getThreadPoolSize());
|
||||
myExecutorService = AppExecutorUtil.createBoundedApplicationPoolExecutor("JpsCacheLoader Pool", INSTANCE, getThreadPoolSize());
|
||||
}
|
||||
|
||||
public void load(boolean isForceUpdate) {
|
||||
|
||||
Reference in New Issue
Block a user