Reference default path variables in services VM options.

Answered

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?

3

Please sign in to leave a comment.