"Run/Debug Configurations" - shortcut variables
All,
I am looking for a way to use a "variable" in the "Run/Debug Configurations" window of IntelliJ IDEA 7.0.3. What I am trying to accomplish is creation of a config that is easily portable that uses a path that is set up within the project itself. To give an example...
In my project I have a module configured called "MyMod". This contains a standard configuration and has a class that is executable. For this executable class to succeed, an environment variable, say, "mymod.dir.envvar" needs to be set. I want this "mymod.dir.envvar" to be specified and automatically populated in the "VM parameters" area of the of the Run/Debug Configurations for it using something similar to the following:
Does IntelliJ IDEA 7.0.3 provide any default variables like this? What would be handy would be things like idea.project.dir, idea.module.<modulename>.dir, idea.output.dir, etc. etc. etc. While we don't current commit the IWS file created by IDEA (we just put the IPR in the source repository), this would actually make it feasible to do so since some of our environment variables, working directory "standards", etc. are dictated based on some of these directories.
Thanks,
Joe
Please sign in to leave a comment.
Hi Joe,
AFAIK this is not available, the thing that comes close is usage of the default settings (left down corner of the run/debug dialog), which can be specified per run/debug type.
But as I read your question correctly you need a module specific parameter/value and you probably have multiple modules of the same type (I guess), ... :(
Hello,
Please try -Dmymod.dir.envvar=$MODULE_DIR$/smth
IDEA 7.0.3 though does not save this value properly so you should upgrade
for latest 7.0.4
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
P.S. $PROJECT_DIR$ is also available; as well you may want to define your
own path variables
The website only has 7.0.3 available ( http://www.jetbrains.com/downloads.html ).
When is 7.0.4 being released?
That would actually be ideal. :)
7.0.4 will be available later this week I hope. For now there is 7.0.4 RC available from http://www.jetbrains.net/confluence/display/IDEADEV/Selena+EAP
Thank you