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?

0

The old UI does not seem to have an options for that either. (The edit run configuration window appears to be identical.)

0

Hi - does this help?

0

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.

0

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.

1

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. 

0

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

0

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.

0

请先登录再写评论。