Hi Ted, Since IDEA is a java program it cannot read system environment (there's simply no API for that). One option is not using environment variables and pass parameters through the command line. If your program does require usages of environment variables you can set up an external too that calls a bat-file which in turn will start "myTest" with the proper command line.
Best regards, Eugene Zhuravlev IntelliJ Software, http://www.intellij.com/ "Develop with pleasure!" ----- Original Message ----- From: "Ted Hill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 30 November, 2001 10:16 PM Subject: [Eap-list] VM parameters > Build #513 > JDK 1.3.1 > NT 4.0 > > Note that on the DOS box command line I can do this: > > > >java -D"myEnvironmentVariable=%SOME_ENVIRONMENT_VARIABLE%" myTest > > and in myTest, I can do the following: > > String envVariable = System.getProperty("myEnvironmentVariable"); > > now envVariable will be equal to the NT value of SOME_ENVIRONMENT_VARIABLE > > However, in IntelliJ, if I set my VM Parameters to > > -D"myEnvironmentVariable=%SOME_ENVIRONMENT_VARIABLE%" > > and start myTest from inside IntelliJ, > > envVariable will simply be the string: %SOME_ENVIRONMENT_VARIABLE% > > rather than the value of the environment variable itself. > > Ted Hill > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
