Is there a way to use the "modify classpath" feature in the Run/Debug Configurations editor with a macro or a relative path?

Answered

In my team, we share run configurations among all developers. In order to accomplish this, we all use a similar project layout which enables us to find everything we need relative to the project directory. For the VM options, program arguments and working directory, this works well as we can make use of macros there. With the help of the macros, we can specify paths like this:

$ProjectFileDir$\..\xyz\xyz_server

But this does not seem to work with the new "modify classpath" feature:It seems that we can only enter absolute paths here and macros cannot be used.

Is this assumption correct? And if yes, can you imagine a workaround for our problem?

0
4 comments

Hi! I am afraid it is not possible. Please raise feature request at https://youtrack.jetbrains.com/issues

0

I was able to get the relative paths to work by editing the run configurations .xml file directly. I also found it easier to add multiple entries this way since the GUI doesn't allow for a multiselect

0

Hi Benjamin King,
I tried this and edited the run configurations XML files, but it does not work for me. The $ProjectFileDir$ macro does not get expanded.

0

I've raised a new issue for the responsible developer in YouTrack. Please follow https://youtrack.jetbrains.com/issue/IDEA-303236 for updates

0

Please sign in to leave a comment.