Build tw: Completed successfully message is too long, updated according to the mockup IDEA-209457

GitOrigin-RevId: a6aefea4849650936ef814612a8c97944119cff5
This commit is contained in:
Vladislav.Soroka
2019-04-29 16:50:37 +03:00
committed by intellij-monorepo-bot
parent ed0bc6318d
commit 0d22ff54d4
2 changed files with 4 additions and 6 deletions
@@ -386,7 +386,7 @@ public class ExternalSystemRunConfiguration extends LocatableConfigurationBase i
public void onSuccess(@NotNull ExternalSystemTaskId id) {
if (progressListener != null) {
progressListener.onEvent(new FinishBuildEventImpl(
id, null, System.currentTimeMillis(), "completed successfully", new SuccessResultImpl()));
id, null, System.currentTimeMillis(), "successful", new SuccessResultImpl()));
}
}
@@ -511,16 +511,14 @@ public class ExternalSystemUtil {
String title = ExternalSystemBundle.message("notification.project.refresh.fail.title",
externalSystemId.getReadableName(), projectName);
com.intellij.build.events.FailureResult failureResult = createFailureResult(title, e, externalSystemId, project);
String message = isPreviewMode ? "project preview creation failed" : "sync failed";
finishSyncEventSupplier.set(() -> new FinishBuildEventImpl(id, null, System.currentTimeMillis(), message, failureResult));
finishSyncEventSupplier.set(() -> new FinishBuildEventImpl(id, null, System.currentTimeMillis(), "failed", failureResult));
processHandler.notifyProcessTerminated(1);
}
@Override
public void onSuccess(@NotNull ExternalSystemTaskId id) {
String message = isPreviewMode ? "project preview created" : "sync finished";
finishSyncEventSupplier.set(
() -> new FinishBuildEventImpl(id, null, System.currentTimeMillis(), message, new SuccessResultImpl()));
() -> new FinishBuildEventImpl(id, null, System.currentTimeMillis(), "successful", new SuccessResultImpl()));
processHandler.notifyProcessTerminated(0);
}
@@ -619,7 +617,7 @@ public class ExternalSystemUtil {
String message = "Sync finish event has not been received";
LOG.warn(message, exception);
ServiceManager.getService(project, SyncViewManager.class).onEvent(
new FinishBuildEventImpl(resolveProjectTask.getId(), null, System.currentTimeMillis(), "sync failed",
new FinishBuildEventImpl(resolveProjectTask.getId(), null, System.currentTimeMillis(), "failed",
new FailureResultImpl(new Exception(message, exception))));
}
}