1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Use target= in maven builds too

This commit is contained in:
Daniel Martí 2013-06-10 22:50:15 +02:00
parent 9c3b4a9daa
commit 445bc8eb12

View File

@ -367,6 +367,12 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
mvncmd += ['-Dandroid.sign.debug=true'] mvncmd += ['-Dandroid.sign.debug=true']
else: else:
mvncmd += ['-Dandroid.sign.debug=false', '-Dandroid.release=true'] mvncmd += ['-Dandroid.sign.debug=false', '-Dandroid.release=true']
if 'target' in thisbuild:
target = thisbuild["target"].split('-')[1]
subprocess.call(['sed', '-i',
's@<platform>[0-9]*</platform>@<platform>'+target+'</platform>@g',
'pom.xml'], cwd=root_dir)
if 'mvnflags' in thisbuild: if 'mvnflags' in thisbuild:
mvncmd += thisbuild['mvnflags'] mvncmd += thisbuild['mvnflags']
p = subprocess.Popen(mvncmd, cwd=root_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) p = subprocess.Popen(mvncmd, cwd=root_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)