Hand program arguments from one run configuration to another?

Answered

Hi,

I created a Run Configuration Plugin that only contains input fields for specific program arguments. Now I want to hand over these arguments from Run Config A as a String to another Run Config B with the remaining informations to start the program and set there the program arguments with this String. Maybe the arguments could be hand over with in an ApplicationConfiguration that will be merged together with the ApplicationConfiguration from B.

Alternativ it would also be ok, if I could read Application Configuration from the given Run Configuration B and write that in my own Configuration A.

It would be great if I could use "Before Launch" for this.

Thanks for the help.
Leon

2
1 comment

Sounds like com.intellij.execution.RunConfigurationExtension would be the best solution. You can find samples in IJ Community sources or here https://plugins.jetbrains.com/intellij-platform-explorer?extensions=com.intellij.runConfigurationExtension

0

Please sign in to leave a comment.