If any of the builds in a group fails offer to stop the fullbuild process and open the failing projects in codewarrior.

This commit is contained in:
Jack Jansen 2000-07-24 19:45:07 +00:00
parent 919d3267ff
commit bc66f950e8
1 changed files with 9 additions and 0 deletions

View File

@ -64,6 +64,7 @@ def buildmwproject(top, creator, projects):
mgr = MwShell(creator, start=1)
mgr.send_timeout = AppleEvents.kNoTimeOut
failed = []
for file in projects:
if type(file) == type(()):
file, target = file
@ -90,7 +91,15 @@ def buildmwproject(top, creator, projects):
mgr.Make_Project()
except aetools.Error, arg:
print '**', file, target, 'Failed:', arg
failed.append(fss)
mgr.Close_Project()
if failed:
print 'Open failed projects and exit?',
rv = sys.stdin.readline()
if rv[0] in ('y', 'Y'):
for fss in failed:
mgr.open(fss)
sys.exit(0)
## mgr.quit()
def buildapplet(top, dummy, list):