How can I pass command line parameters to Gradle run configuration?

I have a simple Gradle run configuration and I want to add command line parameters to the task that is called.
Something like (when run from the command line):

gradle run -Pabc=def
I tried adding

-Pabc=def
to VM options.
And running

run -Pabc=def
in Tasks.

None of them works.
What is the correct way to do that via Intellij Idea configuration?

0

it's not supported yet, see related feature request at http://youtrack.jetbrains.com/issue/IDEA-117792

0
Avatar
Permanently deleted user

Thank you.


0

That issue is already fixed, right?

How can we download a nightly build or patch?

0

yes, it will be available when 13.0.2 released or you may try EAP when it will be published (you can watch http://confluence.jetbrains.com/display/IDEADEV/IDEA+13+EAP)

0

请先登录再写评论。