How can I pass multiple arguments via cli with a p...
# community-support
j
How can I pass multiple arguments via cli with a project property? For example,
org.gradle.jvmargs
can accept multiple values separated by spaces in the
gradle.properties
file, but I would like to override that file via
-P
in a Gradle Profiler scenario, my tries using
"
are not working.
t
Did you try with
-D
?
org.gradle.jvmargs
is a Gradle property, not a project property. https://docs.gradle.org/current/userguide/command_line_interface.html#sec:environment_options
thank you 1
j
Oh, as we were setting it on the
gradle.properties
, I was thinking I need to override it via
-P
too 🤔
Do you know the correct syntax to avoid having problems with spaces?
Or
-D org.gradle.jvmargs=foo bar baz
would be valid
t
Depends on your shell; in most Linux shells:
"-Dorg.gradle.jvmargs=foo bar baz"
👍 1
thank you 1
j
I don't know about how Gradle profiler deals with double
"
or if it is not even necessary 🤔
Do you know if the
kotlin.daemon.jvmargs
is a system property? I cannot see it here
Okay, it is there in a Slack conversation, it is a project property, so
-P