Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.64 KB

FAQ.md

File metadata and controls

49 lines (32 loc) · 1.64 KB

How to modify jvmArguments of runIde task

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'
}

How to modify system properties of runIde task

Using the very same task documentation, configure runIde task:

runIde {
  systemProperty('name', 'value' )
}

How to Debug

Running gradle tasks from IDEA produces Gradle run configuration. The produced configuration can be run in debug mode just as any other run configuration:

Debug Gradle run configuration

How do I add my a custom file inside plugin distribution

prepareSandbox task is a Sync task and can be modified accordinally. Something like following should work:

prepareSandbox {
  from('yourFile') { 
    into "${intellij.pluginName}/lib/" 
  }
}

How to configure logging

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:

Logs

To do this you need to add log file in Gradle run configuration settings:

Gradle run configuration