Changed command line formant for gradle.
This commit is contained in:
parent
d2f497d4de
commit
1df3d9a46f
1 changed files with 7 additions and 2 deletions
|
@ -13,11 +13,16 @@ applicationName = 'ensichat'
|
|||
|
||||
run {
|
||||
// Use this to pass command line arguments via `gradle run`.
|
||||
// Example:
|
||||
//
|
||||
// Uses comma instead of space for command seperation for simpler parsing.
|
||||
//
|
||||
// Examples:
|
||||
// ```
|
||||
// ./gradlew server:run -Pargs="--help"
|
||||
// ./gradlew server:run -Pargs="--name,MyName"
|
||||
// ./gradlew server:run -Pargs="--name,MyName,--status,My Status"
|
||||
// ```
|
||||
if (project.hasProperty('args')) {
|
||||
args project.args.split('\\s+')
|
||||
args project.args.split(',')
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue