mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Split Gradle arguments on comma vs. spaces
Prior to this commit, Gradle was configured to take a -Pargs property and split the value on whitespace, passing the result to the Gradle application plugin's 'args' property, for example: gradle run -Pargs="--id=foo --ip=1.1.1.1 --port=10001" While this approach works fine when passing a single argument (i.e. when no space delimiters are required), when multiple arguments are passed, such as in the example above, it would result in the following error from Gradle's own command line parser: Unknown command-line option '--ip' This commit simply splits the value of -Pargs on commas rather than spaces, meaning that now multiple -Pargs values should be supplied as follows: gradle run -Pargs="--id=foo,--ip=1.1.1.1,--port=10001" Resolves #264
This commit is contained in:
parent
c12b94b7c2
commit
dfbe6973e7
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ mainClassName = "io.bitsquare.app.gui.Main"
|
||||||
|
|
||||||
run {
|
run {
|
||||||
if (project.hasProperty('args')) {
|
if (project.hasProperty('args')) {
|
||||||
args project.args.split('\\s+')
|
args project.args.split(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue