IDEA-169463 Creating a Gradle project sends mismatched onStart() and onEnd() notifications to ExternalSystemTaskNotificationListenerAdapter

This commit is contained in:
Vladislav.Soroka
2017-03-14 11:16:21 +03:00
parent b2cd46bdeb
commit 77a93e1842
2 changed files with 1 additions and 1 deletions
@@ -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));
@@ -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());