modify custom vm option in run configurations
已回答
I have a custom vm option in most of my run configurations: "${eclipselink-javaagent}", I need to edit that, but I'm not able to find any way to do that in the new simplified UI. Am I missing something?
请先登录再写评论。
The old UI does not seem to have an options for that either. (The edit run configuration window appears to be identical.)
Hi - does this help?
No. It adds the option textfield to the window, that I already have. But inside that textfield I have the text “${eclipselink-javaagent}". That value is declared as “…/eclipselink-2.7.6”. I need to change that to 4.0.2.
Where is that variable defined? How do I change it? I apparently created it a long long time ago.
Ah, thank you.
The format of the variable suggests that it is a user environment variable passed as a VM option (see https://www.jetbrains.com/help/idea/run-debug-configuration-junit.html#java).
Try combing through the list of environment variables currently in place for your system user.
You are quite right! Thank you!
I have been using Eclipse for ages, but since they changed something in their maven integration I switched to IntelliJ. I probably have the fact that Eclipse has a custom macro option cloud my search scope, just assuming IntelliJ would have something similar.
Glad I could help👍🏻
It does actually, but the format of macros is slightly different. See https://www.jetbrains.com/help/idea/built-in-macros.html
Ah, okay, then let me rephrase that: defining a custom variable that can be used in all run configs is quite simple in Eclipse, with a key-value window, I naively expected something similar. But an env-variable will do the trick.