Intellij idea IDEA运行/调试配置中系统属性的空值

Intellij idea IDEA运行/调试配置中系统属性的空值,intellij-idea,Intellij Idea,我想在IntellJ IDEA中进行“运行”配置,并预定义一些java系统属性(普通且简单的任务)。但由于某些原因,我需要将一些属性设置为空字符串——这在思想上并不容易: -Dmy-property=abd -Dmy-property2= -Dmy-property3=afd 如果我在“系统属性”输入中输入,它将转换为 -Dmy-property=abd -Dmy-property2=-Dmy-property3=afd IDEA删除了“未使用的”空白。这是不可取的。目前,我只能通过将空属性

我想在IntellJ IDEA中进行“运行”配置,并预定义一些java系统属性(普通且简单的任务)。但由于某些原因,我需要将一些属性设置为空字符串——这在思想上并不容易:

-Dmy-property=abd
-Dmy-property2=
-Dmy-property3=afd
如果我在“系统属性”输入中输入,它将转换为

-Dmy-property=abd
-Dmy-property2=-Dmy-property3=afd

IDEA删除了“未使用的”空白。这是不可取的。目前,我只能通过将空属性移动到列表的第一端来解决这个问题。是否有其他方法输入emtpy属性值?

我看不出有问题

我创建了一个小测试程序,即使属性被转换,它也能正常工作

并且在IntelliJ中具有以下功能:

运行时,我将获得以下输出:

property = abc
property2 = 
property3 = afd
运行时,格式化的系统属性将是正确的,因为命令行如下所示:

"C:\Program Files\Java\jdk1.6.0_33\bin\java" -Dmy-property=abc -Dmy-property2= -Dmy-property3=afd <lots of jars> com.stackoverflow.Main
“C:\Program Files\Java\jdk1.6.0\u 33\bin\Java”-Dmy property=abc-Dmy-property2=-Dmy-property3=afd com.stackoverflow.Main
也就是说,
-Dmy-property2=
将是空字符串。

如果希望空字符串看起来更好,可以添加
作为值来获取空字符串:
-Dmy-property2=”“
"C:\Program Files\Java\jdk1.6.0_33\bin\java" -Dmy-property=abc -Dmy-property2= -Dmy-property3=afd <lots of jars> com.stackoverflow.Main