This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 190789

Summary: The run options should support environment variables
Product: java Reporter: darbie <darbie>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description darbie 2010-10-05 22:35:11 UTC
I want to specify something like this when I run a java program from NetBeans:

-Djava.security.policy=file:$TAPE_LIB_SIM/config/rmiServer.policy

but I have not found a way to get NetBeans to read my TAPE_LIB_SIM environment 
variable and replace it with the proper string.

To work around this for now I have to hard code the path like this:
Djava.security.policy=file:/home/billd/projects/motionSimBranch/java/custRel/config/rmiServer.policy

This works for me, but when another team member pulls up the same project from source control on their machine, the /home/billd/... path is not valid for them.

However, $TAPE_LIB_SIM is set properly on both our machines, so support for env. variables would help us.

Please add in support for environment variables for all run options:
both arguments and vm options.
Comment 1 Jesse Glick 2010-10-15 15:05:12 UTC
I believe env vars are already available using "env." or "Env." prefixes (acc. to whether you want case sensitivity), but can't remember.