From 2da0c905a35df9d07d46f015d117dae08e6854a3 Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Fri, 13 Nov 1998 22:01:01 +0000 Subject: [PATCH] Work around a CW Pro4 bug. If the CW Find window is in front before you start, and you try to use an applevent to walk the list of open documents, you will fail. Running the build script in this case would open each of the projects in turn, but fail to attempt to build them or to close them again. The output will say something like "building foo / building bar / ... / build complete". Nothing would be built, and the log file would show no errors. This change will stop the build, instead of just barreling ahead regardless, in the case when the Find window bug is encountered. git-svn-id: svn://10.0.0.236/trunk@14616 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/build/mac/CodeWarriorLib.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/build/mac/CodeWarriorLib.pm b/mozilla/build/mac/CodeWarriorLib.pm index 4c13bcfe7e3..c38a7624f74 100644 --- a/mozilla/build/mac/CodeWarriorLib.pm +++ b/mozilla/build/mac/CodeWarriorLib.pm @@ -109,7 +109,10 @@ sub build_project ($;$$$) { while (1) { $p = _get_project($full_path); if (!$p) { - return if ($project_was_closed); + if ($project_was_closed) { + print "### Error - request for project document failed after opening\n"; + die "### possibly CW Pro 4 bug: be sure to close your Find window\n"; + } $project_was_closed = 1; _open_file($full_path); } else {