added check for autopsy ant build

This commit is contained in:
Sean-M 2013-02-21 16:08:02 -05:00
parent cea2c49965
commit ceb3232d0a

View File

@ -1329,7 +1329,7 @@ def antBuild(which, Build):
ant.append("dist") ant.append("dist")
antpth = make_local_path(case.output_dir, "ant" + which + "Output.txt") antpth = make_local_path(case.output_dir, "ant" + which + "Output.txt")
antout = open(antpth, 'a') antout = open(antpth, 'a')
subprocess.call(ant, stdout=antout) succd = subprocess.call(ant, stdout=antout)
if which == "datamodel": if which == "datamodel":
chk = os.path.join("..", "..", "..","sleuthkit", "bindings", "java", "dist", "TSK_DataModel.jar") chk = os.path.join("..", "..", "..","sleuthkit", "bindings", "java", "dist", "TSK_DataModel.jar")
try: try:
@ -1341,6 +1341,13 @@ def antBuild(which, Build):
attachl.append(antpth) attachl.append(antpth)
send_email() send_email()
sys.exit() sys.exit()
elif (succd != 0):
global errorem
global attachl
errorem += "Autopsy build failed.\n"
attachl.append(antpth)
send_email()
sys.exit()