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.
run
.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?
The solution is to create a new Run Config as follows for the main program:
-ahttp://foo.com/bar -dmydeviceid
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.