From 36ceb363b03e2326dfb6a025c37492db403d61ba Mon Sep 17 00:00:00 2001 From: Chanseok Oh Date: Tue, 29 May 2018 17:23:46 -0400 Subject: [PATCH] Fix bug to wait for all projects (#3117) --- .../cloud/tools/eclipse/test/util/project/ProjectUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/com.google.cloud.tools.eclipse.test.util/src/com/google/cloud/tools/eclipse/test/util/project/ProjectUtils.java b/plugins/com.google.cloud.tools.eclipse.test.util/src/com/google/cloud/tools/eclipse/test/util/project/ProjectUtils.java index 9ea1c905e1..02e28b8e03 100644 --- a/plugins/com.google.cloud.tools.eclipse.test.util/src/com/google/cloud/tools/eclipse/test/util/project/ProjectUtils.java +++ b/plugins/com.google.cloud.tools.eclipse.test.util/src/com/google/cloud/tools/eclipse/test/util/project/ProjectUtils.java @@ -194,7 +194,11 @@ public static boolean waitUntilNoBuildErrors(IProject... projects) throws CoreEx /** Fail if there are any build errors on any project in the workspace. */ public static void failIfBuildErrors() throws CoreException { - failIfBuildErrors("Projects have build errors", getWorkspace().getRoot().getProjects()); + failIfBuildErrors("Projects have build errors"); + } + + public static void failIfBuildErrors(String message) throws CoreException { + failIfBuildErrors(message, getWorkspace().getRoot().getProjects()); } /** Fail if there are any build errors on the specified projects. */