'New' Path Variables Settings

Can anyone give an example of Path Variables Settings usage? I am
guessing that you can set some variables which point to a certain
directory, and then you can use them in various places? Can these be
used in Modules output paths etc without much threat to our health?

R

4 comments
Comment actions Permalink

Robert S. Sfeir wrote

Can anyone give an example of Path Variables Settings usage?


As far as I understand, you create a variable that points to some
specific path, but then you don't have to actually use the variable
explicitly. Instead, all occurrences of that path are automagically
replaced with the variable the next time the ipr/iml/iws is saved.

If you move files to some other path you only have to change the
variable, instead of changing paths in dozens of places (modules,
libraries, and so on). Or you can share project files between different
users who have different paths -- different values for the variables,
but the ipr/iml definitions can remain the same.

0
Comment actions Permalink

Ohhhhh... Niiiiiiceee

R

Jonas Kvarnström wrote:

Robert S. Sfeir wrote

>> Can anyone give an example of Path Variables Settings usage?


As far as I understand, you create a variable that points to some
specific path, but then you don't have to actually use the variable
explicitly. Instead, all occurrences of that path are automagically
replaced with the variable the next time the ipr/iml/iws is saved.

If you move files to some other path you only have to change the
variable, instead of changing paths in dozens of places (modules,
libraries, and so on). Or you can share project files between different
users who have different paths -- different values for the variables,
but the ipr/iml definitions can remain the same.

0
Comment actions Permalink

What is the criteria for replacement? I created Path Variable:

TomcatHome=E:\SynDev\jakarta-tomcat-4.1.24

In some of my "run" items, i refer to this directory
in the vm parameters as well as the working directory. Nowhere in the .iws did i see the above value being replaced with a variable.

0
Comment actions Permalink

PS: It seems to work for .jar files though.

I set the path variable JTestHome to point to the home directory for JTest, and my classpath had the jtest.zip file in it. The .iml now has $JTestHome$/lib/jtest.zip as part of the URL instead of the full path name.

Does this feature not include the RunManager?

0

Please sign in to leave a comment.