How to keep Netbeans from automatically copying configuration files to private folder?

瘦欲@ 提交于 2019-12-23 02:36:16

问题


In Netbeans it is possible to create specific run configurations (main class, parameters) through the "Project Properties"->"Run" settings.

Such configuration files are then stored in the nbproject/configs folder.

Now, whenever I open and save the project properties, this configuration is "copied" to nbproject/private/configs.

Can I keep Netbeans from creating these private configuration files?

The problem is that the files are not copied exactly. If my original config looks like:

main.class=[myPackage].MyMain

arg1=SomeValue
arg2=SomeOtherValue

application.args=${arg1} ${arg2}

Then the "copied" file only contains the single line

application.args=${arg1} ${arg2}

which obviously cannot not work, since my main class then gets those strings literally.

来源:https://stackoverflow.com/questions/35405010/how-to-keep-netbeans-from-automatically-copying-configuration-files-to-private-f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!