change build.py to launch ant via os.system, rather than subprocess.call. this fixes building mobile on windows

This commit is contained in:
Jon Atkins 2013-03-30 21:28:13 +00:00
parent 60444c9169
commit 09a42d81ec

View File

@ -8,7 +8,6 @@ import base64
import sys import sys
import os import os
import shutil import shutil
import subprocess
# load settings file # load settings file
@ -174,7 +173,7 @@ if buildMobile:
# now launch 'ant' to build the mobile project # now launch 'ant' to build the mobile project
retcode = subprocess.call(["ant", "-buildfile", "mobile/build.xml", buildMobile]) retcode = os.system("ant -buildfile mobile/build.xml %s" % buildMobile)
if retcode != 0: if retcode != 0:
print ("Error: mobile app failed to build. ant returned %d" % retcode) print ("Error: mobile app failed to build. ant returned %d" % retcode)