Need some information on "Run / Debug Configurations"

Hi,

I have 2 questions:
1 - I constantly switching from one module to the other and I use the same run configurations. Each time, I have to modify the parameters send to the JVM to point to my module path. Does INTELLIJ IDEA has some environment variables that I can? i.e. something like $MODULE_PATH... so I can write $MODULE_PATH/my_resources/foobar.xml.

2 - Is it possible to ask INTELLIJ IDEA to run a script before it start the application described in it run configuration? I want to remove some data file to start my testing from scratch and for the moment I have to remove them manually, which is error prone.

If it is of any use, I'm running Mac OS X with Intellij 5.1.2.

Thank you for your help.
Renault

5 comments
Comment actions Permalink

2. I think you can somehow define to run an ant task before run/debug.

0
Comment actions Permalink

1. I'm also very interested in that Q , but in other way :
We use the Windows user name for folder names that store personal configs for the apps we work on and it is very easy with Maven to make personalized builds.
So, my additional Q is - is it possible to make IDEA to use env. variables like ${user.name}, as Maven and Ant do ? If not, are there any plans for that.

0
Comment actions Permalink

Interesting, but I can't find where I can specify this ant task. Do you have an idea where it should be?

0
Comment actions Permalink

Hello Renault,

It is currently located in Ant Toolwindow (popup menu) ...

Thank you.

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Interesting, but I can't find where I can specify this ant task. Do
you have an idea where it should be?



0
Comment actions Permalink

1. I'm also very interested in that Q , but in other
way :
We use the Windows user name for folder names that
store personal configs for the apps we work on and it
is very easy with Maven to make personalized builds.
So, my additional Q is - is it possible to make IDEA
to use env. variables like ${user.name}, as Maven and
Ant do ? If not, are there any plans for that.


Any plans to add this feature?

In Eclipse the syntax is the same, for example to point to your selected file: $

This is very useful to pass configuration to your applications.

0

Please sign in to leave a comment.