Better debugging for when ant fails

This commit is contained in:
Manuel Amador (Rudd-O) 2010-09-07 20:00:51 -07:00
parent 0b367f4341
commit 7df749eba6
1 changed files with 3 additions and 1 deletions

View File

@ -270,7 +270,9 @@ def runant(tsk):
"-Dthirdparty.classpath=%s"%(tsk.env.CLASSPATH.replace(os.pathsep,",")),
]
stanzas += tsk.generator.antargs + tsk.generator.anttgts
return Utils.exec_command(" ".join(stanzas),cwd=tsk.generator.bld.srcnode.abspath(),env=environ,log=True)
ret = Utils.exec_command(" ".join(stanzas),cwd=tsk.generator.bld.srcnode.abspath(),env=environ,log=True)
if ret != 0: raise Utils.WafError("Ant command %s failed with error value %s"%(stanzas,ret))
return ret
Utils.runant = runant
@throws_command_errors