开发者

How do I set -DmyConfig=whatever when running a java program through "run file" in Netbeans?

开发者 https://www.devze.com 2023-01-14 05:08 出处:网络
I\'m using netbeans 6.7.1 and I have a maven web project (war file). I\'d like to profile part of the project by running a java class with a main method.

I'm using netbeans 6.7.1 and I have a maven web project (war file).

I'd like to profile part of the project by running a java class with a main method. I need to specify a -DconfigDir=whatever when running this program.

How do you specify this in netbeans?

In eclipse I simply edit the run configurations. I've only seen where you can setup run conf开发者_运维问答igurations for "jar" projects, not "war" projects.


It looks like you can do this in NetBeans 6.9.

How do I set -DmyConfig=whatever when running a java program through "run file" in Netbeans?

0

精彩评论

暂无评论...
验证码 换一张
取 消