Using environment variables in “VM options” and “Program arguments”

前端 未结 3 769
北海茫月
北海茫月 2020-12-11 01:02

In my project configuration in IDEA, I have the following text fields:

\"Project

I woul

3条回答
  •  不知归路
    2020-12-11 01:18

    You can access environment variables using the brace-enclosed environment variable syntax. Example:

    VM options: -Dfoo=${MY_ENV_VAR}

    MY_ENV_VAR environment variable will be expanded properly.

    Update: tested in IntelliJ IDEA 2017.1.2 and still working.

提交回复
热议问题