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