mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-169463 Creating a Gradle project sends mismatched onStart() and onEnd() notifications to ExternalSystemTaskNotificationListenerAdapter
This commit is contained in:
-1
@@ -146,7 +146,6 @@ public class GradleExecutionHelper {
|
||||
operation.withArguments(ArrayUtil.toStringArray(filteredArgs));
|
||||
}
|
||||
|
||||
listener.onStart(id);
|
||||
final String javaHome = settings.getJavaHome();
|
||||
if (javaHome != null && new File(javaHome).isDirectory()) {
|
||||
operation.setJavaHome(new File(javaHome));
|
||||
|
||||
+1
@@ -253,6 +253,7 @@ public class GradleProjectResolver implements ExternalSystemProjectResolver<Grad
|
||||
myCancellationMap.putValue(resolverCtx.getExternalSystemTaskId(), new UnsupportedCancellationToken());
|
||||
}
|
||||
}
|
||||
resolverCtx.getListener().onStart(resolverCtx.getExternalSystemTaskId());
|
||||
allModels = buildActionExecutor.run();
|
||||
if (allModels == null) {
|
||||
throw new IllegalStateException("Unable to get project model for the project: " + resolverCtx.getProjectPath());
|
||||
|
||||
Reference in New Issue
Block a user