Passing JVM params to runtime config

In a plugin, how do I pass JVM parameters (such as -Xmx) to the run config so that IDEA executes the command with the JVM settings I want?

Comment actions Permalink

Maybe one of the following extension points would help you:
- RunConfigurationExtension (does not work for unit tests)
- StepsBeforeRunProvider (adds a checkbox to Configurations)

Hope this helps,
Slawomir Ginter

Comment actions Permalink

The plugin Im looking at currently has the following:
extends RunConfigurationBase implements ModuleRunConfiguration

I dont see an obvious way to pass JVM params in here, or have I missed something, or could I extend / implement something else?

Comment actions Permalink

I cast the RunConfiguration directly to JUnitConfiguration and work on it directly (as this is the only config type I am interested in)
If you can't take this approach, I can't help you any more


Please sign in to leave a comment.