Reference default path variables in services VM options.
已回答
Hi,
I tried to reference a built-in standard path variable $PROJECT_DIR$ in the VM options of a service:
-DmyApp.root.dir=${PROJECT_DIR}"\aFolder\anotherFolder"

The variable $PROJECT_DIR$ is not resolved and because of this the server will does not start.
Then I defined a custom path variable named $PRJ_DIR$. This variable can be resolved. I also tested to create a new path variable named $PROJECT_DIR$, but this variable is as expected reserved.
So why does Intellij not resolve the built in standard path variables in the services VM options? Is this a bug?
请先登录再写评论。
Outcome: Is a known bug https://intellij-support.jetbrains.com/hc/en-us/requests/4536628 reported 2017.
https://youtrack.jetbrains.com/issue/IDEA-184315