Changed command line formant for gradle.

This commit is contained in:
Felix Ableitner 2016-01-24 23:43:22 +01:00
parent d2f497d4de
commit 1df3d9a46f

View file

@ -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(',')
}
}