How to keep Netbeans from automatically copying co

2019-06-05 20:22发布

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.

0条回答
登录 后发表回答