[gradle] tool window performance: avoid disk hit when calculating task id

GitOrigin-RevId: aa792e7df8ad71941410d0afbcca400ca3ce4160
This commit is contained in:
Nikita Skvortsov
2019-07-25 14:05:37 +03:00
committed by intellij-monorepo-bot
parent aecddd76db
commit 9943c092ee
@@ -57,7 +57,7 @@ public class ExternalSystemShortcutsManager implements Disposable {
if (projectPath != null) {
String portablePath = FileUtil.toSystemIndependentName(projectPath);
File file = new File(portablePath);
result.append(file.isFile() && file.getParentFile() != null ? file.getParentFile().getName() : file.getName());
result.append(file.getParentFile() != null ? file.getParentFile().getName() : file.getName());
result.append(Integer.toHexString(portablePath.hashCode()));
if (taskName != null) result.append(taskName);