I have a java main program in my gradle project which I can run via command line using the gradle application plugin run task with --args param new since gradle 4.9 as follows:
gradle run --args="-ahttp://foo.com/bar -dmydeviceid"
I would like to create a Run Configuration for the same in IntelliJ IDEA CE 2018.1.
- I specify Task field in Run/Debug Configuration dilog as
run. - I specify Arguments field as --args="-ahttp://foo.com/bar -dmydeviceid"
When I run this run config I get the error:
11:58:31 AM: Executing task 'run --args="-ahttp://foo.com/bar -dmydeviceid"'...
Unknown command-line option '--args'.
How can I make this work via run config?