How does one pass arguments to the `run` task?
# compose-desktop
d
How does one pass arguments to the
run
task?
i
You can use jvmArgs
d
Can that be used from IntelliJ run configuration? I want to specify a personal info that I don't want to commit to the repo.
By personal, I just mean my home directory,
/home/dominic
which won't work everwhere.
i
If we specify argument in a run configuration it will be passed to the Gradle process. In the Gradle we can access it like
System.getProperty("prop")
and pass to
jvmArgs
pass to  
jvmArgs
jvmArgs("-Dprop=${System.getProperty("prop")}")
2
d
Ahhh that works, thanks!