- add the -J option to maven-build to pass command-line options to the JVM
- increase the default max. JVM memory to 2G
This commit is contained in:
parent
05c9a25b4e
commit
eedfe0a69b
2 changed files with 16 additions and 2 deletions
5
cli/koji
5
cli/koji
|
|
@ -827,6 +827,9 @@ def handle_maven_build(options, session, args):
|
|||
parser.add_option("-D", "--property", action="append",
|
||||
dest="properties", metavar="NAME=VALUE", default=[],
|
||||
help=_("Pass a system property to the Maven build"))
|
||||
parser.add_option("-J", "--jvm-option", action="append",
|
||||
dest="jvm_options", metavar="OPTION", default=[],
|
||||
help=_("Pass a command-line option to the JVM"))
|
||||
parser.add_option("--specfile", action="store", metavar="URL",
|
||||
help=_("SCM URL of a spec file fragment to use to generate wrapper RPMs"))
|
||||
parser.add_option("--skip-tag", action="store_true",
|
||||
|
|
@ -858,7 +861,7 @@ def handle_maven_build(options, session, args):
|
|||
parser.error(_("Invalid SCM URL: %s" % source))
|
||||
assert False
|
||||
opts = {}
|
||||
for key in ('skip_tag', 'scratch', 'specfile', 'patches', 'profiles'):
|
||||
for key in ('skip_tag', 'scratch', 'specfile', 'patches', 'profiles', 'jvm_options'):
|
||||
val = getattr(build_opts, key)
|
||||
if val:
|
||||
opts[key] = val
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue