且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NetBeans-为从NetBeans启动的每个JVM设置系统属性

更新时间:2022-01-23 08:27:49

nbproject文件夹中有一个名为project.properties的文件.在此文件中,您可以执行GUI菜单中没有的许多配置.我不知道确切该放置什么以实现您想要的,但是我在我的一个NetBeans项目配置中找到了它:

There's a file called project.properties in the nbproject folder. In this file there is a lot of configurations you can do that are not in the GUI menus. I don't know exactly what to put there to achieve what you want, but I found this on one of my NetBeans projects config:

# Space-separated list of JVM arguments used when running the project
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
# or test-sys-prop.name=value to set system properties for unit tests):
run.jvmargs=
run.test.classpath=\
    ${javac.test.classpath}:\
    ${build.test.classes.dir}