Is it possible to use the $PROJECT_DIR$ variable in a run config?
已回答
I'm trying to set up a Resin run config for a project. I can't guarentee that everyone will checkout the project to the same folder location, so wanted to use the $PROJECT_DIR$ variable to make it dynamic. Whenever i do this, it doesn't seem to resolve that variable into it's value. Is there a different way to do this?
Ideally the path to the Resin configuration template would be "$PROJECT_DIR$\<module name>\resin.xml" where each module would have a similar config but with it's module name in the path.
请先登录再写评论。
Try using the actual paths, they should be replaced with the variables automatically when the project is saved. Make the run configurations shared and check the .XML files per https://stackoverflow.com/a/3136255/104891 . What paths are stored there? If it doesn't help, please specify where exactly you specify the paths in the run/debug configuration.
Hi. I've got the actual paths saved in the config as follows.
I have the "Share through VCS" checkbox enabled.
In the <modulename>.xml file in the runConfigurations folder, in the <server-settings> block, it's configured as follows.
It should have been swapped with the $PROJECT_DIR$ variable for part of that path right?
Thanks for the report, I've submitted a bug at https://youtrack.jetbrains.com/issue/IDEA-223478. Please follow it for updates. See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are not familiar with YouTrack.
Awesome. Thank you.