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 - The run options should support environment variables
Summary: The run options should support environment variables
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 22:35 UTC by darbie
Modified: 2010-10-15 15:05 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.