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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user