Issue
I am running maven based Spring project in netbeans . I am using an environment variable in my project configurations file to Open specific file based on that variable value . I am able to set it In Eclipse but do not know how to set in Netbeans . Can any one help me?
Solution
System.getEnv("FOO") == "FOOVALUE"
netbeans 6.7+ -
Right click Project
- ->Properties ->Actions ->Run project ->Set Properties: Add
Env.FOO=FOOVALUE
Note: You can apply the same technique on other configurations and other actions like Debug project
Answered By - sureshnath