preserve the format of parameters with no value when calling maven-build and maven-chain

-Dfoo and -Dfoo= mean different things to the JVM, so make sure the format of the parameter on the command-line is carried through to the mvn invocation.
This commit is contained in:
Mike Bonnet 2014-10-15 19:07:35 -04:00 committed by Mike McLean
parent cc72bebfae
commit 004a1ba450
3 changed files with 10 additions and 4 deletions

View file

@ -1114,7 +1114,7 @@ def handle_maven_build(options, session, args):
for prop in build_opts.properties:
fields = prop.split('=', 1)
if len(fields) != 2:
fields.append('')
fields.append(None)
props[fields[0]] = fields[1]
if props:
opts['properties'] = props
@ -1199,7 +1199,7 @@ def _maven_params(parser, opts, items):
for prop in value.splitlines():
fields = prop.split('=', 1)
if len(fields) != 2:
fields.append('')
fields.append(None)
props[fields[0]] = fields[1]
value = props
elif name == 'envs':