build: allow inclusion of additional parameters to 'ant' for mobile builds

This commit is contained in:
Jon Atkins 2013-08-29 04:46:13 +01:00
parent 9fd6d3cb65
commit 65d02edd16

View File

@ -59,7 +59,7 @@ dateTimeVersion = time.strftime('%Y%m%d.',utcTime) + time.strftime('%H%M%S',utcT
resourceUrlBase = settings.get('resourceUrlBase') resourceUrlBase = settings.get('resourceUrlBase')
distUrlBase = settings.get('distUrlBase') distUrlBase = settings.get('distUrlBase')
buildMobile = settings.get('buildMobile') buildMobile = settings.get('buildMobile')
antOptions = settings.get('antOptions','')
# plugin wrapper code snippets. handled as macros, to ensure that # plugin wrapper code snippets. handled as macros, to ensure that
# 1. indentation caused by the "function wrapper()" doesn't apply to the plugin code body # 1. indentation caused by the "function wrapper()" doesn't apply to the plugin code body
@ -263,7 +263,7 @@ if buildMobile:
if buildMobile != 'copyonly': if buildMobile != 'copyonly':
# now launch 'ant' to build the mobile project # now launch 'ant' to build the mobile project
retcode = os.system("ant -buildfile mobile/build.xml %s" % buildMobile) retcode = os.system("ant %s -buildfile mobile/build.xml %s" % (antOptions, 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)