does intellij support variables in launch configurations?

后端 未结 5 1196
半阙折子戏
半阙折子戏 2021-02-01 03:48

In eclipse I can include things like the following in the vm args or program args in a launch configuration:

-Dsome.system.property=${string.prompt:explanation:d         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 04:40

    In the 2016 version of IntelliJ at least, you can access environment variables using the brace-enclosed environment variable syntax:

    ${HOME}/path/to/file
    

    is expanded properly, but the alternative syntax

    $HOME/path/to/file
    

    does not work.

    Version Info:

    IntelliJ IDEA 2016.2.2
    Build #IC-162.1628.40, built on August 16, 2016
    JRE: 1.8.0_76-release-b216 amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    

提交回复
热议问题