build: allow inclusion of additional parameters to 'ant' for mobile builds
This commit is contained in:
parent
9fd6d3cb65
commit
65d02edd16
4
build.py
4
build.py
@ -59,7 +59,7 @@ dateTimeVersion = time.strftime('%Y%m%d.',utcTime) + time.strftime('%H%M%S',utcT
|
||||
resourceUrlBase = settings.get('resourceUrlBase')
|
||||
distUrlBase = settings.get('distUrlBase')
|
||||
buildMobile = settings.get('buildMobile')
|
||||
|
||||
antOptions = settings.get('antOptions','')
|
||||
|
||||
# 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
|
||||
@ -263,7 +263,7 @@ if buildMobile:
|
||||
|
||||
if buildMobile != 'copyonly':
|
||||
# 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:
|
||||
print ("Error: mobile app failed to build. ant returned %d" % retcode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user