runIde
task is a Java Exec task and can be modified according to the documentation.
To add some jvm arguments while launching IDE, configure runIde
task in a following way:
runIde {
jvmArgs '-DmyProperty=value'
}
Using the very same task documentation, configure runIde
task:
runIde {
systemProperty('name', 'value' )
}
Running gradle tasks from IDEA produces Gradle run configuration. The produced configuration can be run in debug mode just as any other run configuration:
prepareSandbox
task is a Sync task and can be modified accordinally. Something like following should work:
prepareSandbox {
from('yourFile') {
into "${intellij.pluginName}/lib/"
}
}
The most convenient way to see the logs of running IDE is to add a tab to Run tool window with content of idea.log file:
To do this you need to add log file in Gradle run configuration settings: